english/libraries/joomla/application/application.php
/**
	 * Initialise the application.
	 *
	 * @param   array  $options  An optional associative array of configuration settings.
	 *
	 * @since   11.1
	 */
Initialise the application.
@param   array  $options  An optional associative array of configuration settings.


Initialise the application . @param array $options An optional associative array of configuration settings .
public function initialise($options = array())
	{
		jimport('joomla.plugin.helper');
		$config = JFactory::getConfig();
		if (isset($options['language'])) {
			$config->set('language', $options['language']);
		}
		$user	= JFactory::getUser();
		$editor	= $user->getParam('editor', $this->getCfg('editor'));
		if (!JPluginHelper::isEnabled('editors', $editor)) {
			$editor	= $this->getCfg('editor');
			if (!JPluginHelper::isEnabled('editors', $editor)) {
				$editor	= 'none';
			}
		}
		$config->set('editor', $editor);
		JPluginHelper::importPlugin('system');
		$this->triggerEvent('onAfterInitialise');
	}
public function initialise ( $ options = array ( ) ) { jimport ( 'joomla.plugin.helper' ) ; $ config = JFactory :: getConfig ( ) ; if ( isset ( $ options [ 'language' ] ) ) { $ config -> set ( 'language' , $ options [ 'language' ] ) ; } $ user = JFactory :: getUser ( ) ; $ editor = $ user -> getParam ( 'editor' , $ this -> getCfg ( 'editor' ) ) ; if ( ! JPluginHelper :: isEnabled ( 'editors' , $ editor ) ) { $ editor = $ this -> getCfg ( 'editor' ) ; if ( ! JPluginHelper :: isEnabled ( 'editors' , $ editor ) ) { $ editor = 'none' ; } } $ config -> set ( 'editor' , $ editor ) ; JPluginHelper :: importPlugin ( 'system' ) ; $ this -> triggerEvent ( 'onAfterInitialise' ) ; }
Initialise the application.
Initialise the application .
// Set the language in the class. // Check that we were given a language in the array (since by default may be blank). // Set user specific editor. // Trigger the onAfterInitialise event.