public function get_preferences_as_booleans() {
        $preferences = [];
        $preferences[$this->view] = true;
        $preferences[$this->sort] = true;
        $preferences[$this->grouping] = true;

        return $preferences;
    }
public function get_preferences_as_booleans() {
        $preferences = [];
        $preferences[$this->view] = true;
        $preferences[$this->sort] = true;
        $preferences[$this->grouping] = true;

        return $preferences;
    }
public function get_preferences_as_booleans ( ) { $ preferences = [ ] ; $ preferences [ $ this -> view ] = true ; $ preferences [ $ this -> sort ] = true ; $ preferences [ $ this -> grouping ] = true ; return $ preferences ; }
Get the user preferences as an array to figure out what has been selected

@return array $preferences Array with the pref as key and value set to true
Get the user preferences as an array to figure out what has been selected