The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit bd362fa2 authored by Demian Katz's avatar Demian Katz
Browse files

Added missing property comments; minor cleanup.

parent 1949fb56
No related merge requests found
......@@ -42,26 +42,102 @@ use VuFind\I18n\Translator\TranslatorAwareInterface,
*/
abstract class Options implements TranslatorAwareInterface
{
// Available sort options
/**
* Available sort options
*
* @var array
*/
protected $sortOptions = array();
/**
* Overall default sort option
*
* @var string
*/
protected $defaultSort = 'relevance';
/**
* Handler-specific defaults
*
* @var array
*/
protected $defaultSortByHandler = array();
/**
* RSS-specific sort option
*
* @var string
*/
protected $rssSort = null;
// Search options for the user
/**
* Default search handler
*
* @var string
*/
protected $defaultHandler = null;
/**
* Advanced search handlers
*
* @var array
*/
protected $advancedHandlers = array();
/**
* Basic search handlers
*
* @var array
*/
protected $basicHandlers = array();
/**
* Special advanced facet settings
*
* @var string
*/
protected $specialAdvancedFacets = '';
/**
* Should we retain filters by default?
*
* @var bool
*/
protected $retainFiltersByDefault = true;
/**
* Default filters to apply to new searches
*
* @var array
*/
protected $defaultFilters = array();
// Available limit options
/**
* Default limit option
*
* @var int
*/
protected $defaultLimit = 20;
/**
* Available limit options
*
* @var array
*/
protected $limitOptions = array();
// Available view options
/**
* Default view option
*
* @var string
*/
protected $defaultView = 'list';
/**
* Available view options
*
* @var array
*/
protected $viewOptions = array();
/**
......@@ -78,9 +154,25 @@ abstract class Options implements TranslatorAwareInterface
*/
protected $spellcheck = true;
// Shard settings
/**
* Available shards
*
* @var array
*/
protected $shards = array();
/**
* Default selected shards
*
* @var array
*/
protected $defaultSelectedShards = array();
/**
* Should we present shard checkboxes to the user?
*
* @var bool
*/
protected $visibleShardCheckboxes = false;
/**
......
......@@ -51,28 +51,102 @@ class Params implements ServiceLocatorAwareInterface
*/
protected $query;
protected $searchTerms = array();
// Page number
/**
* Page number
*
* @var int
*/
protected $page = 1;
// Sort settings
/**
* Sort setting
*
* @var string
*/
protected $sort = null;
/**
* Override special RSS sort feature?
*
* @var bool
*/
protected $skipRssSort = false;
// Result limit
/**
* Result limit
*
* @var int
*/
protected $limit = 20;
/**
* Search type (basic or advanced)
*
* @var string
*/
protected $searchType = 'basic';
// Shards
/**
* Shards
*
* @var array
*/
protected $selectedShards = array();
// View
/**
* View
*
* @var string
*/
protected $view = null;
// \VuFind\Search\Base\Options subclass
/**
* Search options
*
* @var Options
*/
protected $options;
// Recommendation settings
/**
* Recommendation settings
*
* @var array
*/
protected $recommend = array();
/**
* Are recommendations turned on?
*
* @var bool
*/
protected $recommendationEnabled = false;
// Facet settings
/**
* Main facet configuration
*
* @var array
*/
protected $facetConfig = array();
/**
* Checkbox facet configuration
*
* @var array
*/
protected $checkboxFacets = array();
/**
* Applied filters
*
* @var array
*/
protected $filterList = array();
/**
* Facets in "OR" mode
*
* @var array
*/
protected $orFacets = array();
/**
......@@ -478,7 +552,7 @@ class Params implements ServiceLocatorAwareInterface
/**
* Return the sorting value
*
* @return int
* @return string
*/
public function getSort()
{
......
......@@ -44,24 +44,82 @@ use VuFindSearch\Service as SearchService;
*/
abstract class Results implements ServiceLocatorAwareInterface
{
/**
* Search parameters
*
* @var Params
*/
protected $params;
// Total number of results available
/**
* Total number of results available
*
* @var int
*/
protected $resultTotal = null;
// Override (only for use in very rare cases)
/**
* Override (only for use in very rare cases)
*
* @var int
*/
protected $startRecordOverride = null;
// Array of results (represented as Record Driver objects) retrieved on latest
// search:
/**
* Array of results (represented as Record Driver objects) retrieved on latest
* search
*
* @var array
*/
protected $results = null;
// An ID number for saving/retrieving search
/**
* An ID number for saving/retrieving search
*
* @var int
*/
protected $searchId = null;
/**
* Is this a user-saved search?
*
* @var bool
*/
protected $savedSearch = null;
// STATS
/**
* Query start time
*
* @var float
*/
protected $queryStartTime = null;
/**
* Query end time
*
* @var float
*/
protected $queryEndTime = null;
/**
* Query time (total)
*
* @var float
*/
protected $queryTime = null;
// Helper objects
/**
* Helper objects
*
* @var array
*/
protected $helpers = array();
// Spelling
/**
* Spelling suggestions
*
* @var array
*/
protected $suggestions = null;
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment