CRM_Extension_Browser
class CRM_Extension_Browser
This class glues together the various parts of the extension system.
Constants
DEFAULT_EXTENSIONS_REPOSITORY |
An URL for public extensions repository. Note: This default is now handled through setting/*.php. |
SINGLE_FILE_PATH |
Relative path below remote repository URL for single extensions file. |
CACHE_JSON_FILE |
The name of the single JSON extension cache file. |
CHECK_TIMEOUT |
|
Methods
No description
Determine whether the system policy allows downloading new extensions.
No description
Refresh the cache of remotely-available extensions.
Determine whether downloading is supported.
Get a list of all available extensions.
Get a description of a particular extension.
A dummy function required for suppressing download errors.
Details
at line 67
__construct(string $repoUrl, string $indexPath, string $cacheDir)
at line 84
bool
isEnabled()
Determine whether the system policy allows downloading new extensions.
This is reflection of policy and intent; it does not indicate whether the browser will actually work. For that, see checkRequirements().
at line 91
string
getRepositoryUrl()
at line 98
refresh()
Refresh the cache of remotely-available extensions.
at line 111
array
checkRequirements()
Determine whether downloading is supported.
at line 141
array
getExtensions()
Get a list of all available extensions.
at line 166
CRM_Extension_Info|NULL
getExtension(string $key)
Get a description of a particular extension.
at line 282
static
downloadError($errorNumber, $errorString)
A dummy function required for suppressing download errors.