ExtensionHelper
Extension Helper class.
| since |
3.7.4 |
|---|---|
| package |
Joomla CMS |
Methods
checkIfCoreExtension
Check if an extension is core or not
checkIfCoreExtension( type, element, clientId, folder = '') :
| since |
3.7.4 |
|---|
Arguments
- type
stringThe extension's type.- element
stringThe extension's element name.- clientId
intThe extension's client ID. Default 0.- folder
stringThe extension's folder. Default ''.
Response
boolTrue if core, false if not.
getCoreExtensionIds
Returns an array of core extension IDs.
getCoreExtensionIds() : mixed||string|int
| since |
4.0.0 |
|---|---|
| throws |
|
Response
array<string|int, mixed>
getCoreExtensions
Gets the core extensions.
getCoreExtensions() : mixed||string|int
| since |
3.7.4 |
|---|
Response
array<string|int, mixed>Array with core extensions.
Each extension is an array with following format:
type, element, folder, client_id.
getExtensionRecord
Returns an extension record for the given name.
getExtensionRecord( element, type, int|null clientId = null, string|null folder = null) : \stdClass|null
| since |
4.0.0 |
|---|---|
| throws |
|
Arguments
- element
stringThe extension element- type
stringThe extension type- clientId
int|nullThe client ID- folder
string|nullPlugin folder
Response
stdClass|nullThe object or null if not found.
Properties
extensions
The loaded extensions.
| since |
4.0.0 |
|---|
Type(s)
array<string|int, mixed>
loadedExtensions
The loaded extensions.
| since |
4.0.0 |
|---|
Type(s)
array<string|int, mixed>
coreExtensions
Array of core extensions Each element is an array with elements "type", "element", "folder" and "client_id".
| since |
3.7.4 |
|---|
Type(s)
array<string|int, mixed>
coreExtensionIds
Array of core extension IDs.
| since |
4.0.0 |
|---|
Type(s)
array<string|int, mixed>