ExtensionHelper
Extension Helper class.
since |
3.7.4 |
---|---|
deprecated |
4.0 Replace class with a non static methods for better testing |
package |
Application |
Methods
checkIfCoreExtension
Check if an extension is core or not
checkIfCoreExtension(string type, string element, int clientId, string folder = '') : bool
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() : array
since |
4.0.0 |
---|---|
throws |
|
Response
array
getCoreExtensions
Gets the core extensions.
getCoreExtensions() : array
since |
3.7.4 |
---|
Response
array
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(string element, string 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
coreExtensions
Array of core extensions Each element is an array with elements "type", "element", "folder" and "client_id".