class CRM_Extension_Container_Default extends CRM_Extension_Container_Basic

The default container is just a basic container which can be configured via the web UI.

Properties

string $baseDir from CRM_Extension_Container_Basic
string $baseUrl from CRM_Extension_Container_Basic
CRM_Utils_Cache_Interface|NULL $cache from CRM_Extension_Container_Basic
string $cacheKey from CRM_Extension_Container_Basic
array($key $relPaths from CRM_Extension_Container_Basic
array($key $relUrls from CRM_Extension_Container_Basic

Methods

__construct(string $baseDir, string $baseUrl, $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

string
getBaseDir()

No description

string
getRelPath(string $key)

Determine the relative path of an extension directory.

array
getRelPaths()

Scan $basedir for a list of extension-keys

string
getRelUrl(string $key)

Determine the relative path of an extension directory.

array
getRelUrls()

Scan $basedir for a list of extension-keys

static array
convertPathsToUrls(string $dirSep, array $relPaths)

Convert a list of relative paths to relative URLs.

Details

__construct(string $baseDir, string $baseUrl, $cache = NULL, string $cacheKey = NULL)

Parameters

string $baseDir Local path to the container.
string $baseUrl Public URL of the container.
$cache Cache in which to store extension metadata.
string $cacheKey Unique name for this container.

at line 44
checkRequirements()

getKeys()

getPath(string $key)

Parameters

string $key Fully-qualified extension name.

getResUrl(string $key)

Parameters

string $key Fully-qualified extension name.

refresh()

string getBaseDir()

Return Value

string

protected string getRelPath(string $key)

Determine the relative path of an extension directory.

Parameters

string $key Extension name.

Return Value

string

Exceptions

CRM_Extension_Exception_MissingException

protected array getRelPaths()

Scan $basedir for a list of extension-keys

Return Value

array ($key => $relPath)

protected string getRelUrl(string $key)

Determine the relative path of an extension directory.

Parameters

string $key Extension name.

Return Value

string

Exceptions

CRM_Extension_Exception_MissingException

protected array getRelUrls()

Scan $basedir for a list of extension-keys

Return Value

array ($key => $relUrl)

static array convertPathsToUrls(string $dirSep, array $relPaths)

Convert a list of relative paths to relative URLs.

Note: Treat as private. This is only public to facilitate testing.

Parameters

string $dirSep Directory separator ("/" or "\").
array $relPaths Array($key => $relPath).

Return Value

array Array($key => $relUrl).