ExtensionHelper

Extension Helper class.

deprecated
since

3.7.4

deprecated

4.0 Replace class with a non static methods for better testing

Methods

checkIfCoreExtension

Check if an extension is core or not

checkIfCoreExtension(string $type, string $element, integer $client_id, string $folder = '') : boolean
static
since

3.7.4

Arguments

$type

stringThe extension's type.

$element

stringThe extension's element name.

$client_id

integerThe extension's client ID. Default 0.

$folder

stringThe extension's folder. Default ''.

Response

booleanTrue if core, false if not.

getCoreExtensions

Gets the core extensions.

getCoreExtensions() : array
static
since

3.7.4

Response

arrayArray with core extensions. Each extension is an array with following format: type, element, folder, client_id.

Properties

coreExtensions

Array of core extensions Each element is an array with elements "type", "element", "folder" and "client_id".

static
since

3.7.4

Type(s)

array