class CRM_Extension_Container_Collection implements CRM_Extension_Container_Interface

An extension container is a locally-accessible source tree which can be scanned for extensions.

Properties

array $containers
CRM_Utils_Cache_Interface|NULL $cache
string $cacheKey
array $k2c

Methods

__construct(array $containers, $cache = NULL, string $cacheKey = NULL)

No description

checkRequirements()

No description

getKeys()

No description

getPath(string $key)

No description

getResUrl(string $key)

No description

refresh()

No description

getContainer(string $key)

Get the container which defines a particular key.

array
getKeysToContainer()

Get a list of all keys in these containers -- and the name of the container which defines each key.

Details

at line 76
__construct(array $containers, $cache = NULL, string $cacheKey = NULL)

Parameters

array $containers Array($name => CRM_Extension_Container_Interface) in order from highest priority (winners) to lowest priority (losers).
$cache Cache in which to store extension metadata.
string $cacheKey Unique name for this container.

at line 87
checkRequirements()

at line 100
getKeys()

at line 110
getPath(string $key)

Parameters

string $key Fully-qualified extension name.

at line 119
getResUrl(string $key)

Parameters

string $key Fully-qualified extension name.

at line 126
refresh()

at line 144
CRM_Extension_Container_Interface getContainer(string $key)

Get the container which defines a particular key.

Parameters

string $key Extension name.

Return Value

CRM_Extension_Container_Interface

Exceptions

CRM_Extension_Exception_MissingException

at line 161
array getKeysToContainer()

Get a list of all keys in these containers -- and the name of the container which defines each key.

Return Value

array ($key => $containerName)