Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe Shortcut
+ Graphe d'héritage de Shortcut:

Fonctions membres publiques

 initialize ()
 
 addShortcuts (Event $event)
 
- Fonctions membres publiques hérités de CMSPlugin
 __construct (&$subject, $config=array())
 
 loadLanguage ($extension='', $basePath=JPATH_ADMINISTRATOR)
 
 setApplication (CMSApplicationInterface $application)
 
- Fonctions membres publiques hérités de DispatcherAwareInterface
 setDispatcher (DispatcherInterface $dispatcher)
 
- Fonctions membres publiques hérités de PluginInterface
 registerListeners ()
 

Fonctions membres publiques statiques

static getSubscribedEvents ()
 

Attributs protégés

 $autoloadLanguage = true
 
- Attributs protégés hérités de CMSPlugin
 $_name = null
 
 $_type = null
 
 $autoloadLanguage = false
 
 $allowLegacyListeners = true
 

Membres hérités additionnels

- Champs de données hérités de CMSPlugin
 $params = null
 
- Fonctions membres protégées hérités de CMSPlugin
 registerLegacyListener (string $methodName)
 
 registerListener (string $methodName)
 
 getApplication ()
 

Description détaillée

Shortcut plugin to add accessible keyboard shortcuts to the administrator templates.

Depuis
4.2.0

Documentation des fonctions membres

◆ addShortcuts()

addShortcuts ( Event  $event)

Add default shortcuts to the document

Paramètres
Event$eventThe event
Renvoie
void
Depuis
4.2.0

Références Text\_(), Route\_(), AbstractEvent\getArgument(), et Event\setArgument().

◆ getSubscribedEvents()

static getSubscribedEvents ( )
static

Returns an array of events this subscriber will listen to.

The array keys are event names and the value can be:

  • The method name to call (priority defaults to 0)
  • An array composed of the method name to call and the priority

For instance:

  • array('eventName' => 'methodName')
  • array('eventName' => array('methodName', $priority))
Renvoie
array
Depuis
4.2.0

Implémente SubscriberInterface.

◆ initialize()

initialize ( )

Add the javascript for the shortcuts

Renvoie
void
Depuis
4.2.0

Références $context, $document, $wa, Joomla\CMS\Application\getDispatcher(), et Text\script().

Documentation des champs

◆ $autoloadLanguage

$autoloadLanguage = true
protected

La documentation de cette classe a été générée à partir du fichier suivant :