english/administrator/components/com_search/models/searches.php
/**
	 * Method to auto-populate the model state.
	 *
	 * Note. Calling getState in this method will result in recursion.
	 *
	 * @since	1.6
	 */
Method to auto-populate the model state.
Note. Calling getState in this method will result in recursion.


Method to auto - populate the model state . Note . Calling getState in this method will result in recursion .
protected function populateState($ordering = null, $direction = null)
	{
		$app = JFactory::getApplication('administrator');
		$search = $this->getUserStateFromRequest($this->context.'.filter.search', 'filter_search');
		$this->setState('filter.search', $search);
		$showResults = $this->getUserStateFromRequest($this->context.'.filter.results', 'filter_results', null, 'int');
		$this->setState('filter.results', $showResults);
		$params = JComponentHelper::getParams('com_search');
		$this->setState('params', $params);
		parent::populateState('a.hits', 'asc');
	}
protected function populateState ( $ ordering = null , $ direction = null ) { $ app = JFactory :: getApplication ( 'administrator' ) ; $ search = $ this -> getUserStateFromRequest ( $ this -> context . '.filter.search' , 'filter_search' ) ; $ this -> setState ( 'filter.search' , $ search ) ; $ showResults = $ this -> getUserStateFromRequest ( $ this -> context . '.filter.results' , 'filter_results' , null , 'int' ) ; $ this -> setState ( 'filter.results' , $ showResults ) ; $ params = JComponentHelper :: getParams ( 'com_search' ) ; $ this -> setState ( 'params' , $ params ) ; parent :: populateState ( 'a.hits' , 'asc' ) ; }
Method to auto-populate the model state.
Method to auto - populate the model state .
// Initialise variables. // Load the filter state. // Load the parameters. // List state information.