CRM_Extension_Downloader
class CRM_Extension_Downloader
This class handles downloads of remotely-provided extensions
Properties
CRM_Extension_Container_Basic | $container | ||
string | $tmpDir |
Methods
array
checkRequirements(CRM_EXtension_Info $extensionInfo = NULL)
Determine whether downloading is supported.
bool
download(string $key, string $downloadUrl)
Install or upgrade an extension from a remote URL.
bool
fetch(string $remoteFile, string $localFile)
Download the remote zipfile.
string|FALSE
extractFiles(string $key, string $zipFile)
Extract an extension from a zip file.
bool
validateFiles($key, $extractedZipPath)
Validate that $extractedZipPath contains valid for extension $key
Details
at line 51
__construct(CRM_Extension_Manager $manager, string $containerDir, string $tmpDir)
at line 65
array
checkRequirements(CRM_EXtension_Info $extensionInfo = NULL)
Determine whether downloading is supported.
at line 119
bool
download(string $key, string $downloadUrl)
Install or upgrade an extension from a remote URL.
at line 155
bool
fetch(string $remoteFile, string $localFile)
Download the remote zipfile.
at line 176
string|FALSE
extractFiles(string $key, string $zipFile)
Extract an extension from a zip file.
at line 216
bool
validateFiles($key, $extractedZipPath)
Validate that $extractedZipPath contains valid for extension $key