JApplication/initialise
From Joomla! Documentation
< API16:JApplicationRevision as of 20:57, 12 May 2013 by JoomlaWikiBot (talk | contribs) (removing red link to edit, no existant pages)
Revision as of 20:57, 12 May 2013 by JoomlaWikiBot (talk | contribs) (removing red link to edit, no existant pages)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
Initialise the application.
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax[edit]
initialise($options=array())
Parameter Name | Default Value | Description |
---|---|---|
$options | array() | An optional associative array of configuration settings. |
Defined in[edit]
libraries/joomla/application/application.php
Importing[edit]
jimport( 'joomla.application.application' );
Source Body[edit]
public function initialise($options = array())
{
jimport('joomla.plugin.helper');
// Set the language in the class.
$config = &JFactory::getConfig();
// Check that we were given a language in the array (since by default may be blank).
if (isset($options['language'])) {
$config->setValue('config.language', $options['language']);
}
// Set user specific editor.
$user = &JFactory::getUser();
$editor = $user->getParam('editor', $this->getCfg('editor'));
$editor = JPluginHelper::isEnabled('editors', $editor) ? $editor : $this->getCfg('editor');
$config->setValue('config.editor', $editor);
// Trigger the onAfterInitialise event.
JPluginHelper::importPlugin('system');
$this->triggerEvent('onAfterInitialise');
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples[edit]
<CodeExamplesForm />