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 ExtensionHelper

Fonctions membres publiques statiques

static getCoreExtensions ()
 
static getCoreExtensionIds ()
 
static checkIfCoreExtension ($type, $element, $clientId=0, $folder='')
 
static getExtensionRecord (string $element, string $type, ?int $clientId=null, ?string $folder=null)
 

Attributs publics statiques

static $extensions = [ModuleInterface::class => []
 

Attributs protégés statiques

static $coreExtensions
 
static $coreExtensionIds
 

Attributs privés statiques

static $loadedExtensions = []
 

Description détaillée

Extension Helper class.

Depuis
3.7.4
Obsolète:
4.0 Replace class with a non static methods for better testing

Documentation des fonctions membres

◆ checkIfCoreExtension()

static checkIfCoreExtension (   $type,
  $element,
  $clientId = 0,
  $folder = '' 
)
static

Check if an extension is core or not

Paramètres
string$typeThe extension's type.
string$elementThe extension's element name.
integer$clientIdThe extension's client ID. Default 0.
string$folderThe extension's folder. Default ''.
Renvoie
boolean True if core, false if not.
Depuis
3.7.4

Références $clientId, $folder, et $type.

◆ getCoreExtensionIds()

static getCoreExtensionIds ( )
static

Returns an array of core extension IDs.

Renvoie
array
Depuis
4.0.0
Exceptions

Références $db, $extension, $query, Factory\getDbo(), ParameterType\INTEGER, null, et ParameterType\STRING.

Référencé par ManageModel\getListQuery(), UpdateModel\getNonCoreExtensions(), et UpdateModel\getNonCorePlugins().

◆ getCoreExtensions()

static getCoreExtensions ( )
static

Gets the core extensions.

Renvoie
array Array with core extensions. Each extension is an array with following format: type, element, folder, client_id.
Depuis
3.7.4

◆ getExtensionRecord()

static getExtensionRecord ( string  $element,
string  $type,
?int  $clientId = null,
?string  $folder = null 
)
static

Returns an extension record for the given name.

Paramètres
string$elementThe extension element
string$typeThe extension type
integer | null$clientIdThe client ID
string | null$folderPlugin folder
Renvoie
|null The object or null if not found.
Depuis
4.0.0
Exceptions

Références $clientId, $db, $folder, $key, $query, $type, Factory\getDbo(), ParameterType\INTEGER, et null.

Référencé par UpdateModel\applyUpdateSite(), UpdateModel\finaliseUpgrade(), FinderHelper\getFinderPluginId(), MessagesModel\getJoomlaFilesExtensionId(), UpdateModel\getListQuery(), UpdateModel\getUpdateInformation(), JsonapiView\prepareItem(), et UpdateModel\refreshUpdates().

Documentation des champs

◆ $coreExtensionIds

$coreExtensionIds
staticprotected

◆ $coreExtensions

$coreExtensions
staticprotected

◆ $extensions

$extensions = [ModuleInterface::class => []
static

◆ $loadedExtensions

$loadedExtensions = []
staticprivate

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