Installer helper class
- Depuis
- 3.1
◆ cleanupInstall()
static cleanupInstall |
( |
|
$package, |
|
|
|
$resultdir |
|
) |
| |
|
static |
◆ detectType()
static detectType |
( |
|
$packageDirectory | ) |
|
|
static |
◆ downloadPackage()
static downloadPackage |
( |
|
$url, |
|
|
|
$target = false |
|
) |
| |
|
static |
Downloads a package
- Paramètres
-
string | $url | URL of file to download |
string | bool | $target | Download target filename or false to get the filename from the URL |
- Renvoie
- string|boolean Path to downloaded package or boolean false on failure
- Depuis
- 3.1
Références $parts, $target, $url, $version, Log\add(), elseif, Factory\getApplication(), HttpFactory\getHttp(), PluginHelper\importPlugin(), Text\sprintf(), Log\WARNING, et File\write().
Référencé par UpdateCoreCommand\downloadFile(), LanguagesModel\downloadPackage(), et ExtensionInstallCommand\processUrlInstallation().
◆ getFilenameFromUrl()
static getFilenameFromUrl |
( |
|
$url | ) |
|
|
static |
Gets a file name out of a url
- Paramètres
-
string | $url | URL to get name from |
- Renvoie
- string Clean version of the filename or a unique id
- Depuis
- 3.1
Références $default, $parts, et $url.
◆ isChecksumValid()
static isChecksumValid |
( |
|
$packagefile, |
|
|
|
$updateObject |
|
) |
| |
|
static |
Return the result of the checksum of a package with the SHA256/SHA384/SHA512 tags in the update server manifest
- Paramètres
-
string | $packagefile | Location of the package to be installed |
Update | $updateObject | The Update Object |
- Renvoie
- integer one if the hashes match, zero if hashes doesn't match, two if hashes not found
- Depuis
- 3.9.0
Références $hash.
◆ unpack()
static unpack |
( |
|
$packageFilename, |
|
|
|
$alwaysReturnArray = false |
|
) |
| |
|
static |
◆ HASH_NOT_PROVIDED
const HASH_NOT_PROVIDED = 2 |
◆ HASH_NOT_VALIDATED
const HASH_NOT_VALIDATED = 0 |
◆ HASH_VALIDATED
La documentation de cette classe a été générée à partir du fichier suivant :