Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (Registry $config=null) | |
close ($code=0) | |
execute () | |
get ($key, $default=null) | |
getLogger () | |
set ($key, $value=null) | |
setConfiguration (Registry $config) | |
Fonctions membres publiques hérités de LoggerAwareInterface | |
setLogger (LoggerInterface $logger) | |
Fonctions membres publiques hérités de DispatcherAwareInterface | |
setDispatcher (DispatcherInterface $dispatcher) | |
Fonctions membres protégées | |
dispatchEvent (string $eventName, ?EventInterface $event=null) | |
doExecute () | |
initialise () | |
Attributs protégés | |
$config | |
Joomla Framework Base Application Class
Class constructor.
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, et AbstractApplication\initialise().
close | ( | $code = 0 | ) |
Method to close the application.
integer | $code | The exit code (optional; default is 0). |
Implémente ApplicationInterface.
Référencé par Application\__construct(), Application\execute(), et AbstractWebApplication\redirect().
|
protected |
Dispatches an application event if the dispatcher has been set.
string | $eventName | The event to dispatch. |
EventInterface | null | $event | The event object. |
Références $this, Joomla\CMS\Application\getDispatcher(), et null.
Référencé par Application\doExecute(), AbstractApplication\execute(), AbstractWebApplication\execute(), Application\execute(), AbstractWebApplication\redirect(), et Application\runCommand().
|
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(), et AbstractWebApplication\execute().
execute | ( | ) |
Execute the application.
Implémente ApplicationInterface.
Références $this, ApplicationEvents\AFTER_EXECUTE, ApplicationEvents\BEFORE_EXECUTE, AbstractApplication\dispatchEvent(), AbstractApplication\doExecute(), et ApplicationEvents\ERROR.
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. |
Implémente ConfigurationAwareApplicationInterface.
Référencé par MetadataManager\createSessionRecord(), et MetadataManager\updateSessionRecord().
getLogger | ( | ) |
|
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 |
|||
) |
Modifies a property of the object, creating it if it does not already exist.
string | $key | The name of the property. |
mixed | $value | The value of the property to set (optional). |
Implémente ConfigurationAwareApplicationInterface.
setConfiguration | ( | Registry | $config | ) |
Sets the configuration for the application.
Registry | $config | A registry object holding the configuration. |
Implémente ConfigurationAwareApplicationInterface.
Références AbstractApplication\$config, et $this.
|
protected |