english/administrator/components/com_modules/models/select.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');
		$clientId = $app->getUserState('com_modules.modules.filter.client_id', 0);
		$this->setState('filter.client_id', (int) $clientId);
		$params	= JComponentHelper::getParams('com_modules');
		$this->setState('params', $params);
		$this->setState('list.limit', 0);
		$this->setState('list.start', 0);
		$this->setState('list.ordering', 'a.name');
		$this->setState('list.direction', 'ASC');
	}
protected function populateState ( $ ordering = null , $ direction = null ) { $ app = JFactory :: getApplication ( 'administrator' ) ; $ clientId = $ app -> getUserState ( 'com_modules.modules.filter.client_id' , 0 ) ; $ this -> setState ( 'filter.client_id' , ( int ) $ clientId ) ; $ params = JComponentHelper :: getParams ( 'com_modules' ) ; $ this -> setState ( 'params' , $ params ) ; $ this -> setState ( 'list.limit' , 0 ) ; $ this -> setState ( 'list.start' , 0 ) ; $ this -> setState ( 'list.ordering' , 'a.name' ) ; $ this -> setState ( 'list.direction' , 'ASC' ) ; }
Method to auto-populate the model state.
Method to auto - populate the model state .
// Initialise variables. // Load the filter state. // Load the parameters. // Manually set limits to get all modules.