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
string
The extension's type.- element
string
The extension's element name.- clientId
int
The extension's client ID. Default 0.- folder
string
The extension's folder. Default ''.
Response
bool
True 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
string
The extension element- type
string
The extension type- clientId
int|null
The client ID- folder
string|null
Plugin folder
Response
stdClass|null
The 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>