Installer helper class
- Depuis
- 3.1
◆ cleanupInstall()
static cleanupInstall |
( |
|
$package, |
|
|
|
$resultdir |
|
) |
| |
|
static |
Clean up temporary uploaded package and unpacked extension
- Paramètres
-
string | $package | Path to the uploaded package file |
string | $resultdir | Path to the unpacked extension |
- Renvoie
- boolean True on success
- Depuis
- 3.1
Références $config, et elseif.
◆ detectType()
static detectType |
( |
|
$packageDirectory | ) |
|
|
static |
◆ downloadPackage()
static downloadPackage |
( |
|
$url, |
|
|
|
$target = false |
|
) |
| |
|
static |
◆ 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 |
JUpdate | $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.
◆ splitSql()
static splitSql |
( |
|
$query | ) |
|
|
static |
Splits contents of a sql file into array of discreet queries. Queries need to be delimited with end of statement marker ';'
- Paramètres
-
string | $query | The SQL statement. |
- Renvoie
- array Array of queries
- Depuis
- 3.1
- Obsolète:
- 4.0 Use ::splitSql() directly
Références $db, et $query.
◆ unpack()
static unpack |
( |
|
$packageFilename, |
|
|
|
$alwaysReturnArray = false |
|
) |
| |
|
static |
Unpacks a file and verifies it as a Joomla element package Supports .gz .tar .tar.gz and .zip
- Paramètres
-
string | $packageFilename | The uploaded package filename or install directory |
boolean | $alwaysReturnArray | If should return false (and leave garbage behind) or return $retval['type']=false |
- Renvoie
- array|boolean Array on success or boolean false on failure
- Depuis
- 3.1
Références null.
Référencé par PackageAdapter\copyBaseFiles().
◆ 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 :