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 (Input $input=null, Registry $config=null) | |
close ($code=0) | |
execute () | |
get ($key, $default=null) | |
getLogger () | |
set ($key, $value=null) | |
setConfiguration (Registry $config) | |
setLogger (LoggerInterface $logger) | |
Champs de données | |
$input | |
Fonctions membres protégées | |
doExecute () | |
initialise () | |
Attributs protégés | |
$config | |
Attributs privés | |
$logger | |
Joomla Framework Base Application Class
Class constructor.
Input | $input | An optional argument to provide dependency injection for the application's input object. If the argument is an Input object that object will become the application's input object, otherwise a default input object is created. |
Registry | $config | An optional argument to provide dependency injection for the application's config object. If the argument is a Registry object that object will become the application's config object, otherwise a default config object is created. |
Références AbstractApplication\$config, AbstractApplication\$input, et AbstractApplication\initialise().
close | ( | $code = 0 | ) |
Method to close the application.
integer | $code | The exit code (optional; default is 0). |
Référencé par AbstractCliApplication\__construct(), AbstractWebApplication\checkToken(), AbstractDaemonApplication\detach(), AbstractWebApplication\redirect(), AbstractDaemonApplication\shutdown(), et AbstractDaemonApplication\signal().
|
abstractprotected |
Method to run the application routines. Most likely you will want to instantiate a controller and execute it, or perform some sort of task directly.
Référencé par AbstractApplication\execute(), AbstractWebApplication\execute(), et AbstractDaemonApplication\execute().
execute | ( | ) |
get | ( | $key, | |
$default = null |
|||
) |
Returns a property of the object or the default value if the property is not set.
string | $key | The name of the property. |
mixed | $default | The default value (optional) if none is set. |
Référencé par MetadataManager\createRecordIfNonExisting().
getLogger | ( | ) |
Get the logger.
Références AbstractApplication\$logger.
Référencé par AbstractDaemonApplication\__construct(), AbstractDaemonApplication\changeIdentity(), AbstractDaemonApplication\daemonize(), AbstractDaemonApplication\detach(), AbstractDaemonApplication\execute(), AbstractDaemonApplication\fork(), AbstractDaemonApplication\isActive(), AbstractDaemonApplication\restart(), AbstractDaemonApplication\setupSignalHandlers(), AbstractDaemonApplication\shutdown(), AbstractDaemonApplication\signal(), AbstractDaemonApplication\stop(), et AbstractDaemonApplication\writeProcessIdFile().
|
protected |
Custom initialisation method.
Called at the end of the AbstractApplication::__construct method. This is for developers to inject initialisation code for their application classes.
Référencé par AbstractApplication\__construct().
set | ( | $key, | |
$value = null |
|||
) |
setConfiguration | ( | Registry | $config | ) |
Sets the configuration for the application.
Registry | $config | A registry object holding the configuration. |
Références AbstractApplication\$config.
setLogger | ( | LoggerInterface | $logger | ) |
Set the logger.
LoggerInterface | $logger | The logger. |
Implémente LoggerAwareInterface.
Références AbstractApplication\$logger.
|
protected |
$input |
|
private |
Référencé par AbstractApplication\getLogger(), et AbstractApplication\setLogger().