english/administrator/components/com_installer/models/install.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()
	{
		$app = JFactory::getApplication('administrator');
		$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','');
		$path = $app->getUserStateFromRequest($this->_context.'.install_directory', 'install_directory', $app->getCfg('tmp_path'));
		$this->setState('install.directory', $path);
		parent::populateState();
	}
protected function populateState ( ) { $ app = JFactory :: getApplication ( 'administrator' ) ; $ 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' , '' ) ; $ path = $ app -> getUserStateFromRequest ( $ this -> _context . '.install_directory' , 'install_directory' , $ app -> getCfg ( 'tmp_path' ) ) ; $ this -> setState ( 'install.directory' , $ path ) ; parent :: populateState ( ) ; }
Method to auto-populate the model state.
Method to auto - populate the model state .
// Initialise variables. // Recall the 'Install from Directory' path.