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 |
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
Convert a list of relative paths to relative URLs.
Details
at line 95
__construct(string $baseDir, string $baseUrl, $cache = NULL, string $cacheKey = NULL)
at line 107
checkRequirements()
at line 131
getKeys()
at line 138
getPath(string $key)
at line 145
getResUrl(string $key)
at line 162
refresh()
at line 172
string
getBaseDir()
at line 185
protected string
getRelPath(string $key)
Determine the relative path of an extension directory.
at line 199
protected array
getRelPaths()
Scan $basedir for a list of extension-keys
at line 238
protected string
getRelUrl(string $key)
Determine the relative path of an extension directory.
at line 252
protected array
getRelUrls()
Scan $basedir for a list of extension-keys
at line 274
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.