CRM_Extension_System
in package
This class glues together the various parts of the extension system.
Tags
Table of Contents
Constants
Properties
- $parameters : array<string|int, mixed>
- $_repoUrl : string|false
- The URL of the remote extensions repository.
- $browser : mixed
- $cache : mixed
- $classLoader : CRM_Extension_ClassLoader
- $defaultContainer : mixed
- $downloader : mixed
- $fullContainer : mixed
- $manager : mixed
- $mapper : mixed
- $mixinLoader : mixed
- $singleton : mixed
Methods
- __construct() : mixed
- Class constructor.
- createExtendedInfo() : array<string|int, mixed>
- Take an extension's raw XML info and add information about the extension's status on the local system.
- getBrowser() : CRM_Extension_Browser
- Get the service for finding remotely-available extensions
- getCache() : CRM_Utils_Cache_Interface
- Get the cache object.
- getClassLoader() : CRM_Extension_ClassLoader
- getCompatibilityInfo() : array<string|int, mixed>
- Returns a list keyed by extension key
- getDefaultContainer() : CRM_Extension_Container_Default|false
- Get the container to which new extensions are installed.
- getDownloader() : CRM_Extension_Downloader
- Get the service for loading code from remotely-available extensions
- getFullContainer() : CRM_Extension_Container_Interface
- Get a container which represents all available extensions.
- getManager() : CRM_Extension_Manager
- Get the service for enabling and disabling extensions.
- getMapper() : CRM_Extension_Mapper
- Get the service which provides runtime information about extensions.
- getMixinLoader() : mixed
- getRepositoryUrl() : string|false
- Determine the URL which provides a feed of available extensions.
- isNotTestExtension() : mixed
- setSingleton() : mixed
- singleton() : CRM_Extension_System
Constants
DEFAULT_MAX_DEPTH
public
mixed
DEFAULT_MAX_DEPTH
= 3
Properties
$parameters
protected
array<string|int, mixed>
$parameters
Construction parameters. These are primarily retained so that they can influence the cache name.
$_repoUrl
The URL of the remote extensions repository.
private
string|false
$_repoUrl
= \NULL
$browser
private
mixed
$browser
= \NULL
$cache
private
mixed
$cache
= \NULL
$classLoader
private
CRM_Extension_ClassLoader
$classLoader
$defaultContainer
private
mixed
$defaultContainer
= \NULL
$downloader
private
mixed
$downloader
= \NULL
$fullContainer
private
mixed
$fullContainer
= \NULL
$manager
private
mixed
$manager
= \NULL
$mapper
private
mixed
$mapper
= \NULL
$mixinLoader
private
mixed
$mixinLoader
= \NULL
$singleton
private
static mixed
$singleton
Methods
__construct()
Class constructor.
public
__construct([array<string|int, mixed> $parameters = [] ]) : mixed
Parameters
- $parameters : array<string|int, mixed> = []
-
List of configuration values required by the extension system. Missing values will be guessed based on $config.
createExtendedInfo()
Take an extension's raw XML info and add information about the extension's status on the local system.
public
static createExtendedInfo(CRM_Extension_Info $obj) : array<string|int, mixed>
The result format resembles the old CRM_Core_Extensions_Extension.
Parameters
- $obj : CRM_Extension_Info
Return values
array<string|int, mixed>getBrowser()
Get the service for finding remotely-available extensions
public
getBrowser() : CRM_Extension_Browser
Return values
CRM_Extension_BrowsergetCache()
Get the cache object.
public
getCache() : CRM_Utils_Cache_Interface
Tags
Return values
CRM_Utils_Cache_InterfacegetClassLoader()
public
getClassLoader() : CRM_Extension_ClassLoader
Return values
CRM_Extension_ClassLoadergetCompatibilityInfo()
Returns a list keyed by extension key
public
static getCompatibilityInfo() : array<string|int, mixed>
Return values
array<string|int, mixed>getDefaultContainer()
Get the container to which new extensions are installed.
public
getDefaultContainer() : CRM_Extension_Container_Default|false
This container should be a particular, writeable directory.
Return values
CRM_Extension_Container_Default|false —(false if not configured)
getDownloader()
Get the service for loading code from remotely-available extensions
public
getDownloader() : CRM_Extension_Downloader
Return values
CRM_Extension_DownloadergetFullContainer()
Get a container which represents all available extensions.
public
getFullContainer() : CRM_Extension_Container_Interface
Return values
CRM_Extension_Container_InterfacegetManager()
Get the service for enabling and disabling extensions.
public
getManager() : CRM_Extension_Manager
Return values
CRM_Extension_ManagergetMapper()
Get the service which provides runtime information about extensions.
public
getMapper() : CRM_Extension_Mapper
Return values
CRM_Extension_MappergetMixinLoader()
public
getMixinLoader() : mixed
Tags
getRepositoryUrl()
Determine the URL which provides a feed of available extensions.
public
getRepositoryUrl() : string|false
Return values
string|falseisNotTestExtension()
public
static isNotTestExtension(CRM_Extension_Info $info) : mixed
Parameters
- $info : CRM_Extension_Info
setSingleton()
public
static setSingleton(CRM_Extension_System $singleton) : mixed
Parameters
- $singleton : CRM_Extension_System
-
The new, singleton extension system.
singleton()
public
static singleton([bool $fresh = FALSE ]) : CRM_Extension_System
Parameters
- $fresh : bool = FALSE
-
TRUE to force creation of a new system.