CRM_Extension_Downloader
class CRM_Extension_Downloader
This class handles downloads of remotely-provided extensions
Properties
CRM_Extension_Container_Basic | $container | ||
string | $tmpDir |
Methods
__construct( $manager, string $containerDir, string $tmpDir)
No description
array
checkRequirements()
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( $manager, string $containerDir, string $tmpDir)
at line 63
array
checkRequirements()
Determine whether downloading is supported.
at line 105
bool
download(string $key, string $downloadUrl)
Install or upgrade an extension from a remote URL.
at line 141
bool
fetch(string $remoteFile, string $localFile)
Download the remote zipfile.
at line 162
string|FALSE
extractFiles(string $key, string $zipFile)
Extract an extension from a zip file.
at line 202
bool
validateFiles($key, $extractedZipPath)
Validate that $extractedZipPath contains valid for extension $key