english/administrator/components/com_installer/models/manage.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();
		$filters = JRequest::getVar('filters');
		if (empty($filters)) {
			$data = $app->getUserState($this->context.'.data');
			$filters = $data['filters'];
		}
		else {
			$app->setUserState($this->context.'.data', array('filters'=>$filters));
		}
		$this->setState('message',$app->getUserState('com_installer.message'));
		$this->setState('extension_message',$app->getUserState('com_installer.extension_message'));
		$app->setUserState('com_installer.message','');
		$app->setUserState('com_installer.extension_message','');
		$this->setState('filter.search', isset($filters['search']) ? $filters['search'] : '');
		$this->setState('filter.hideprotected', isset($filters['hideprotected']) ? $filters['hideprotected'] : 0);
		$this->setState('filter.enabled', isset($filters['enabled']) ? $filters['enabled'] : '');
		$this->setState('filter.type', isset($filters['type']) ? $filters['type'] : '');
		$this->setState('filter.group', isset($filters['group']) ? $filters['group'] : '');
		$this->setState('filter.client_id', isset($filters['client_id']) ? $filters['client_id'] : '');
		parent::populateState('name', 'asc');
	}
protected function populateState ( $ ordering = null , $ direction = null ) { $ app = JFactory :: getApplication ( ) ; $ filters = JRequest :: getVar ( 'filters' ) ; if ( empty ( $ filters ) ) { $ data = $ app -> getUserState ( $ this -> context . '.data' ) ; $ filters = $ data [ 'filters' ] ; } else { $ app -> setUserState ( $ this -> context . '.data' , array ( 'filters' => $ filters ) ) ; } $ this -> setState ( 'message' , $ app -> getUserState ( 'com_installer.message' ) ) ; $ this -> setState ( 'extension_message' , $ app -> getUserState ( 'com_installer.extension_message' ) ) ; $ app -> setUserState ( 'com_installer.message' , '' ) ; $ app -> setUserState ( 'com_installer.extension_message' , '' ) ; $ this -> setState ( 'filter.search' , isset ( $ filters [ 'search' ] ) ? $ filters [ 'search' ] : '' ) ; $ this -> setState ( 'filter.hideprotected' , isset ( $ filters [ 'hideprotected' ] ) ? $ filters [ 'hideprotected' ] : 0 ) ; $ this -> setState ( 'filter.enabled' , isset ( $ filters [ 'enabled' ] ) ? $ filters [ 'enabled' ] : '' ) ; $ this -> setState ( 'filter.type' , isset ( $ filters [ 'type' ] ) ? $ filters [ 'type' ] : '' ) ; $ this -> setState ( 'filter.group' , isset ( $ filters [ 'group' ] ) ? $ filters [ 'group' ] : '' ) ; $ this -> setState ( 'filter.client_id' , isset ( $ filters [ 'client_id' ] ) ? $ filters [ 'client_id' ] : '' ) ; parent :: populateState ( 'name' , 'asc' ) ; }
Method to auto-populate the model state.
Method to auto - populate the model state .
// Initialise variables.