class LibraryHelper

Library helper class

Methods

static  stdClass
getLibrary( string $element, boolean $strict = false)

Get the library information.

static  boolean
isEnabled( string $element)

Checks if a library is enabled

static  Registry
getParams( string $element, boolean $strict = false)

Gets the parameter object for the library

static  Registry
saveParams( string $element, Registry $params)

Save the parameters object for the library

Details

static stdClass getLibrary( string $element, boolean $strict = false)

Get the library information.

Parameters

string $element Element of the library in the extensions table.
boolean $strict If set and the library does not exist, the enabled attribute will be set to false.

Return Value

stdClass An object with the library's information.

static boolean isEnabled( string $element)

Checks if a library is enabled

Parameters

string $element Element of the library in the extensions table.

Return Value

boolean

static Registry getParams( string $element, boolean $strict = false)

Gets the parameter object for the library

Parameters

string $element Element of the library in the extensions table.
boolean $strict If set and the library does not exist, false will be returned

Return Value

Registry A Registry object.

See also

Registry

static Registry saveParams( string $element, Registry $params)

Save the parameters object for the library

Parameters

string $element Element of the library in the extensions table.
Registry $params Params to save

Return Value

Registry A Registry object.

See also

Registry