Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct () | |
debugLanguage () | |
dispatch () | |
getLocalise () | |
getLocaliseAdmin ($db=false) | |
getTemplate ($params=false) | |
loadDocument (JDocument $document=null) | |
loadSession (JSession $session=null) | |
render () | |
sendJsonResponse ($response) | |
setCfg (array $vars=array(), $namespace='config') | |
Fonctions membres protégées | |
doExecute () | |
fetchConfigurationData ($file='', $class='JConfig') | |
fetchController ($task) | |
initialiseApp ($options=array()) | |
Joomla! Installation Application class.
debugLanguage | ( | ) |
dispatch | ( | ) |
Dispatch the application.
Références $controller, $document, getDocument, JPATH_ADMINISTRATOR, JPATH_BASE, et JPATH_SITE.
|
protected |
Method to run the Web application routines.
|
protected |
Method to load a PHP configuration class file based on convention and return the instantiated data object. You will extend this method in child classes to provide configuration data from whatever data source is relevant for your specific application.
string | $file | The path and filename of the configuration file. If not provided, configuration.php in JPATH_BASE will be used. |
string | $class | The class name to instantiate. |
RuntimeException |
|
protected |
Method to get a controller object.
string | $task | The task being executed |
RuntimeException |
getLocalise | ( | ) |
Returns the language code and help URL set in the localise.xml file. Used for forcing a particular language in localised releases.
Références JPATH_INSTALLATION.
getLocaliseAdmin | ( | $db = false | ) |
Returns the installed language files in the administrative and frontend area.
mixed | $db | JDatabaseDriver instance. |
Références $clientId, $db, $lang, $language, JPATH_ADMINISTRATOR, et JPATH_SITE.
getTemplate | ( | $params = false | ) |
|
protected |
loadDocument | ( | JDocument | $document = null | ) |
Allows the application to load a custom or default document.
The logic and options for creating this object are adequately generic for default cases but for many applications it will make sense to override this method and create a document, if required, based on more specific needs.
JDocument | $document | An optional document object. If omitted, the factory document is created. |
Références $attributes, $date, $document, $lang, $type, et null.
loadSession | ( | JSession | $session = null | ) |
Allows the application to load a custom or default session.
The logic and options for creating this object are adequately generic for default cases but for many applications it will make sense to override this method and create a session, if required, based on more specific needs.
JSession | $session | An optional session object. If omitted, the session is created. |
render | ( | ) |
Rendering is the process of pushing the document buffers into the template placeholders, retrieving data from the document and pushing it into the application response buffer.
Références $data, $file, $options, et JPATH_THEMES.
sendJsonResponse | ( | $response | ) |
Method to send a JSON response. The data parameter can be an Exception object for when an error has occurred or a stdClass for a good response.
mixed | $response | stdClass on success, Exception on failure. |
Références json_encode.
setCfg | ( | array | $vars = array() , |
$namespace = 'config' |
|||
) |
Set configuration values.
array | $vars | Array of configuration values |
string | $namespace | The namespace |