ExtensionHelper

Extension Helper class.

deprecated
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
static
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() : array
static
since

4.0.0

throws

\RuntimeException

Response

array

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.

getExtensionRecord

Returns an extension record for the given name.

getExtensionRecord(string element, string type, int|null clientId = null, string|null folder = null) : \stdClass|null
static
since

4.0.0

throws

\InvalidArgumentException

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.

static
since

4.0.0

Type(s)

array

loadedExtensions

The loaded extensions.

static
since

4.0.0

Type(s)

array

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

coreExtensionIds

Array of core extension IDs.

static
since

4.0.0

Type(s)

array