english/administrator/components/com_modules/models/module.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()
	{
		$app = JFactory::getApplication('administrator');
		if (!($pk = (int) JRequest::getInt('id'))) {
			if ($extensionId = (int) $app->getUserState('com_modules.add.module.extension_id')) {
				$this->setState('extension.id', $extensionId);
			}
		}
		$this->setState('module.id', $pk);
		$params	= JComponentHelper::getParams('com_modules');
		$this->setState('params', $params);
	}
protected function populateState ( ) { $ app = JFactory :: getApplication ( 'administrator' ) ; if ( ! ( $ pk = ( int ) JRequest :: getInt ( 'id' ) ) ) { if ( $ extensionId = ( int ) $ app -> getUserState ( 'com_modules.add.module.extension_id' ) ) { $ this -> setState ( 'extension.id' , $ extensionId ) ; } } $ this -> setState ( 'module.id' , $ pk ) ; $ params = JComponentHelper :: getParams ( 'com_modules' ) ; $ this -> setState ( 'params' , $ params ) ; }
Method to auto-populate the model state.
Method to auto - populate the model state .
// Load the User state. // Load the parameters.