CRM_Extension_Container_Basic
class CRM_Extension_Container_Basic implements CRM_Extension_Container_Interface
An extension container is a locally-accessible source tree which can be scanned for extensions.
Properties
string | $baseDir | ||
string | $baseUrl | ||
CRM_Utils_Cache_Interface|NULL | $cache | ||
string | $cacheKey | ||
array($key | $relPaths | ||
array($key | $relUrls | ||
protected array | $filters |
Methods
No description
No description
No description
No description
No description
No description
No description
Determine the relative path of an extension directory.
Scan $basedir for a list of extension-keys
Determine the relative path of an extension directory.
Scan $basedir for a list of extension-keys
Register a filter which determine whether a copy of an extension appears as available.
Convert a list of relative paths to relative URLs.
Details
at line 103
__construct(string $baseDir, string $baseUrl, CRM_Utils_Cache_Interface $cache = NULL, string $cacheKey = NULL)
at line 115
checkRequirements()
at line 139
getKeys()
at line 146
getPath(string $key)
at line 153
getResUrl(string $key)
at line 170
refresh()
at line 180
string
getBaseDir()
at line 193
protected string
getRelPath(string $key)
Determine the relative path of an extension directory.
at line 207
protected array
getRelPaths()
Scan $basedir for a list of extension-keys
at line 255
protected string
getRelUrl(string $key)
Determine the relative path of an extension directory.
at line 269
protected array
getRelUrls()
Scan $basedir for a list of extension-keys
at line 288
$this
addFilter(callable $callable)
Register a filter which determine whether a copy of an extension appears as available.
at line 305
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.