Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe Registry

Fonctions membres publiques

 getService (string $key)
 
 hasService (string $key)
 
 register (string $key, $handler, bool $replace=false)
 

Attributs privés

 $serviceMap
 

Description détaillée

Service registry for JHtml services

Depuis
4.0.0

Documentation des fonctions membres

◆ getService()

getService ( string  $key)

Get the service for a given key

Paramètres
string$keyThe service key to look up
Renvoie
string|object
Depuis
4.0.0

Références $key.

◆ hasService()

hasService ( string  $key)

Check if the registry has a service for the given key

Paramètres
string$keyThe service key to look up
Renvoie
boolean
Depuis
4.0.0

Références $key.

◆ register()

register ( string  $key,
  $handler,
bool  $replace = false 
)

Register a service

Paramètres
string$keyThe service key to be registered
string | object$handlerThe handler for the service as either a PHP class name or class object
boolean$replaceFlag indicating the service key may replace an existing definition
Renvoie
void
Depuis
4.0.0

Références $key.

Documentation des champs

◆ $serviceMap

$serviceMap
private
Valeur initiale :
= [

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