english/administrator/components/com_users/models/users.php
/**
	 * Method to auto-populate the model state.
	 *
	 * Note. Calling getState in this method will result in recursion.
	 *
	 * @return	void
	 * @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');
		if ($layout = JRequest::getVar('layout', 'default')) {
			$this->context .= '.'.$layout;
		}
		$search = $this->getUserStateFromRequest($this->context.'.filter.search', 'filter_search');
		$this->setState('filter.search', $search);
		$active = $this->getUserStateFromRequest($this->context.'.filter.active', 'filter_active');
		$this->setState('filter.active', $active);
		$state = $this->getUserStateFromRequest($this->context.'.filter.state', 'filter_state');
		$this->setState('filter.state', $state);
		$groupId = $this->getUserStateFromRequest($this->context.'.filter.group', 'filter_group_id', null, 'int');
		$this->setState('filter.group_id', $groupId);
		$groups = json_decode(base64_decode(JRequest::getVar('groups', '', 'default', 'BASE64')));
		if (isset($groups)) {
			JArrayHelper::toInteger($groups);
		}
		$this->setState('filter.groups', $groups);
		$excluded = json_decode(base64_decode(JRequest::getVar('excluded', '', 'default', 'BASE64')));
		if (isset($excluded)) {
			JArrayHelper::toInteger($excluded);
		}
		$this->setState('filter.excluded', $excluded);
		$params		= JComponentHelper::getParams('com_users');
		$this->setState('params', $params);
		parent::populateState('a.name', 'asc');
	}
protected function populateState ( $ ordering = null , $ direction = null ) { $ app = JFactory :: getApplication ( 'administrator' ) ; if ( $ layout = JRequest :: getVar ( 'layout' , 'default' ) ) { $ this -> context .= '.' . $ layout ; } $ search = $ this -> getUserStateFromRequest ( $ this -> context . '.filter.search' , 'filter_search' ) ; $ this -> setState ( 'filter.search' , $ search ) ; $ active = $ this -> getUserStateFromRequest ( $ this -> context . '.filter.active' , 'filter_active' ) ; $ this -> setState ( 'filter.active' , $ active ) ; $ state = $ this -> getUserStateFromRequest ( $ this -> context . '.filter.state' , 'filter_state' ) ; $ this -> setState ( 'filter.state' , $ state ) ; $ groupId = $ this -> getUserStateFromRequest ( $ this -> context . '.filter.group' , 'filter_group_id' , null , 'int' ) ; $ this -> setState ( 'filter.group_id' , $ groupId ) ; $ groups = json_decode ( base64_decode ( JRequest :: getVar ( 'groups' , '' , 'default' , 'BASE64' ) ) ) ; if ( isset ( $ groups ) ) { JArrayHelper :: toInteger ( $ groups ) ; } $ this -> setState ( 'filter.groups' , $ groups ) ; $ excluded = json_decode ( base64_decode ( JRequest :: getVar ( 'excluded' , '' , 'default' , 'BASE64' ) ) ) ; if ( isset ( $ excluded ) ) { JArrayHelper :: toInteger ( $ excluded ) ; } $ this -> setState ( 'filter.excluded' , $ excluded ) ; $ params = JComponentHelper :: getParams ( 'com_users' ) ; $ this -> setState ( 'params' , $ params ) ; parent :: populateState ( 'a.name' , 'asc' ) ; }
Method to auto-populate the model state.
Method to auto - populate the model state .
// Initialise variables. // Adjust the context to support modal layouts. // Load the filter state. // Load the parameters. // List state information.