Liste de tous les membres
Documentation des fonctions membres
JApplicationBase::close |
( |
|
$code = 0 | ) |
|
Method to close the application.
- Paramètres:
-
integer | $code | The exit code (optional; default is 0). |
- Renvoie:
- void
- Depuis:
- 12.1
JApplicationBase::getIdentity |
( |
| ) |
|
Get the application identity.
- Renvoie:
- mixed A JUser object or null.
- Depuis:
- 12.1
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:
-
JDispatcher | $dispatcher | An optional dispatcher object. If omitted, the factory dispatcher is created. |
- Renvoie:
- JApplicationBase This method is chainable.
- Depuis:
- 12.1
Références $dispatcher, JDispatcher\getInstance(), et null.
JApplicationBase::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:
- JApplicationBase This method is chainable.
- Depuis:
- 12.1
Références JFactory\getUser(), et null.
JApplicationBase::registerEvent |
( |
|
$event, |
|
|
|
$handler |
|
) |
| |
Registers a handler to a particular event group.
- Paramètres:
-
string | $event | The event name. |
callback | $handler | The handler, a function or an instance of a event object. |
- Renvoie:
- JApplicationBase The application to allow chaining.
- Depuis:
- 12.1
JApplicationBase::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:
- 12.1
Références null.
Documentation des données membres
JApplicationBase::$dispatcher |
|
protected |
JApplicationBase::$identity |
|
protected |
JApplicationBase::$input = null |
La documentation de cette classe a été générée à partir du fichier suivant :