class CRM_Extension_System

This class glues together the various parts of the extension system.

Properties

protected array $parameters

Methods

singleton(bool $fresh = FALSE)

No description

static 
setSingleton( $singleton)

No description

__construct(array $parameters = array())

No description

getFullContainer()

Get a container which represents all available extensions.

getDefaultContainer()

Get the container to which new extensions are installed.

getMapper()

Get the service which provides runtime information about extensions.

getManager()

Get the service for enabling and disabling extensions.

getBrowser()

Get the service for finding remotely-available extensions

getDownloader()

Get the service for loading code from remotely-available extensions

string|FALSE
getRepositoryUrl()

Determine the URL which provides a feed of available extensions.

static array
createExtendedInfo( $obj)

Take an extension's raw XML info and add information about the extension's status on the local system.

Details

at line 71
static CRM_Extension_System singleton(bool $fresh = FALSE)

Parameters

bool $fresh TRUE to force creation of a new system.

Return Value

CRM_Extension_System

at line 87
static setSingleton( $singleton)

Parameters

$singleton The new, singleton extension system.

at line 96
__construct(array $parameters = array())

Parameters

array $parameters List of configuration values required by the extension system. Missing values will be guessed based on $config.

at line 121
CRM_Extension_Container_Interface getFullContainer()

Get a container which represents all available extensions.

at line 166
CRM_Extension_Container_Default|FALSE getDefaultContainer()

Get the container to which new extensions are installed.

This container should be a particular, writeable directory.

Return Value

CRM_Extension_Container_Default|FALSE (false if not configured)

at line 183
CRM_Extension_Mapper getMapper()

Get the service which provides runtime information about extensions.

Return Value

CRM_Extension_Mapper

at line 193
CRM_Extension_ClassLoader getClassLoader()

at line 205
CRM_Extension_Manager getManager()

Get the service for enabling and disabling extensions.

Return Value

CRM_Extension_Manager

at line 223
CRM_Extension_Browser getBrowser()

Get the service for finding remotely-available extensions

Return Value

CRM_Extension_Browser

at line 239
CRM_Extension_Downloader getDownloader()

Get the service for loading code from remotely-available extensions

at line 254
CRM_Utils_Cache_Interface getCache()

at line 272
string|FALSE getRepositoryUrl()

Determine the URL which provides a feed of available extensions.

Return Value

string|FALSE

at line 298
static array createExtendedInfo( $obj)

Take an extension's raw XML info and add information about the extension's status on the local system.

The result format resembles the old CRM_Core_Extensions_Extension.

Parameters

$obj

Return Value

array