◆ __construct()
Class constructor.
- Paramètres
-
Input | $input | An optional argument to provide dependency injection for the application's input object. If the argument is a 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. |
- Depuis
- 3.0.0
Références $config, et $input.
◆ doExecute()
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.
- Renvoie
- void
- Depuis
- 3.4 (CMS)
- Obsolète:
- 4.0 The default concrete implementation of doExecute() will be removed, subclasses will need to provide their own implementation.
◆ getIdentity()
Get the application identity.
- Renvoie
- mixed A object or null.
- Depuis
- 3.0.0
◆ loadDispatcher()
Allows the application to load a custom or default dispatcher.
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 event dispatchers, if required, based on more specific needs.
- Paramètres
-
\JEventDispatcher | $dispatcher | An optional dispatcher object. If omitted, the factory dispatcher is created. |
- Renvoie
- BaseApplication This method is chainable.
- Depuis
- 3.0.0
Références $dispatcher, JEventDispatcher\getInstance(), et null.
◆ loadIdentity()
loadIdentity |
( |
\JUser |
$identity = null | ) |
|
Allows the application to load a custom or default identity.
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 an identity, if required, based on more specific needs.
- Paramètres
-
\JUser | $identity | An optional identity object. If omitted, the factory user is created. |
- Renvoie
- BaseApplication This method is chainable.
- Depuis
- 3.0.0
Références null.
◆ registerEvent()
registerEvent |
( |
|
$event, |
|
|
|
$handler |
|
) |
| |
Registers a handler to a particular event group.
- Paramètres
-
string | $event | The event name. |
callable | $handler | The handler, a function or an instance of an event object. |
- Renvoie
- BaseApplication The application to allow chaining.
- Depuis
- 3.0.0
◆ triggerEvent()
triggerEvent |
( |
|
$event, |
|
|
array |
$args = null |
|
) |
| |
Calls all handlers associated with an event group.
- Paramètres
-
string | $event | The event name. |
array | $args | An array of arguments (optional). |
- Renvoie
- array An array of results from each function call, or null if no dispatcher is defined.
- Depuis
- 3.0.0
◆ $dispatcher
◆ $identity
La documentation de cette classe a été générée à partir du fichier suivant :