Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Espaces de nommage | |
CLI | |
Exception | |
Structures de données | |
class | AdministratorApplication |
class | ApiApplication |
class | ApplicationHelper |
class | BaseApplication |
class | CliApplication |
class | CMSApplication |
interface | CMSApplicationInterface |
interface | CMSWebApplicationInterface |
class | ConsoleApplication |
class | DaemonApplication |
interface | EventAwareInterface |
class | SiteApplication |
class | WebApplication |
Fonctions | |
getDispatcher () | |
getLogger () | |
registerEvent ($event, callable $handler) | |
triggerEvent ($eventName, $args=[]) | |
getIdentity () | |
loadIdentity (User $identity=null) | |
setUserFactory (UserFactoryInterface $userFactory) | |
Variables | |
trait | EventAware |
trait | IdentityAware |
$userFactory | |
Joomla! Content Management System
Joomla! Content Management System
Joomla! Content Management System
Joomla! Content Management System
Joomla! Content Management System
Joomla! Content Management System
Joomla! Content Management System
Joomla! Content Management System
Joomla! Content Management System
Joomla! Content Management System
Joomla! Content Management System
|
abstract |
Get the event dispatcher.
Référencé par Captcha\__construct(), Editor\__construct(), Table\__construct(), PlgEditorNone\_displayButtons(), Captcha\_load(), Editor\_loadEditor(), Table\bind(), Table\check(), Table\checkIn(), Table\checkOut(), WebAssetRegistry\dispatchAssetChanged(), AbstractApplication\dispatchEvent(), AbstractView\dispatchEvent(), BaseDatabaseModel\dispatchEvent(), DatabaseDriver\dispatchEvent(), PlgEditorCodemirror\displayButtons(), Editor\getButtons(), Table\hit(), Shortcut\initialize(), Table\load(), Table\move(), Table\publish(), Joomla\CMS\Application\registerEvent(), CMSPlugin\registerLegacyListener(), CMSPlugin\registerListener(), ModuleHelper\renderRawModule(), Table\reorder(), Table\reset(), Application\runCommand(), MVCFactory\setDispatcherOnObject(), Nested\store(), Joomla\CMS\Application\triggerEvent(), et TaskTable\unlock().
Joomla\CMS\Application\getIdentity | ( | ) |
Get the application identity.
Référencé par HtmlView\addToolbar(), WebApplication\afterSessionStart(), CMSApplication\checkSession(), AdministratorApplication\getTemplate(), AdministratorApplication\login(), Joomla\Plugin\System\Webauthn\PluginTraits\mustDisplayButton(), et PlgFieldsMedia\onCustomFieldsPrepareDom().
|
abstract |
Get the logger.
Référencé par AdministratorApplication\getTemplate(), WebApplication\loadSession(), CMSApplication\login(), et Joomla\CMS\Application\triggerEvent().
Allows the application to load a custom or default identity.
User | $identity | An optional identity object. If omitted, a null user object is created. |
Références $this.
Référencé par WebApplication\afterSessionStart().
Joomla\CMS\Application\registerEvent | ( | $event, | |
callable | $handler | ||
) |
Registers a handler to a particular event group.
string | $event | The event name. |
callable | $handler | The handler, a function or an instance of an event object. |
Références $this, et Joomla\CMS\Application\getDispatcher().
Joomla\CMS\Application\setUserFactory | ( | UserFactoryInterface | $userFactory | ) |
Set the user factory to use.
UserFactoryInterface | $userFactory | The user factory to use |
Références Joomla\CMS\Application\$userFactory.
Joomla\CMS\Application\triggerEvent | ( | $eventName, | |
$args = [] |
|||
) |
Calls all handlers associated with an event group.
This is a legacy method, implementing old-style (Joomla! 3.x) plugin calls. It's best to go directly through the Dispatcher and handle the returned EventInterface object instead of going through this method. This method is deprecated and will be removed in Joomla! 5.x.
This method will only return the 'result' argument of the event
string | $eventName | The event name. |
array | Event | $args | An array of arguments or an Event object (optional). |
Références $className, $result, $this, elseif, Joomla\CMS\Application\getDispatcher(), Joomla\CMS\Event\getEventClassByEventName(), et Joomla\CMS\Application\getLogger().
Référencé par AdministratorApplication\dispatch(), SiteApplication\dispatch(), ApiApplication\dispatch(), WebApplication\execute(), CliApplication\execute(), DaemonApplication\execute(), CMSApplication\initialiseApp(), CMSApplication\login(), CMSApplication\logout(), DaemonApplication\postFork(), CMSApplication\render(), AdministratorApplication\route(), SiteApplication\route(), et CMSApplication\route().
|
private |
Référencé par Basic\__construct(), Icon\__construct(), Token\__construct(), et Joomla\CMS\Application\setUserFactory().
trait EventAware |
Trait for application classes which dispatch events
trait IdentityAware |
Trait for application classes which are identity (user) aware