InstallerHelper
class InstallerHelper
Installer helper class
Constants
HASH_NOT_VALIDATED |
Hash not validated identifier. |
HASH_VALIDATED |
Hash validated identifier. |
HASH_NOT_PROVIDED |
Hash not provided identifier. |
Methods
Downloads a package
Unpacks a file and verifies it as a Joomla element package Supports .gz .tar .tar.gz and .zip
Method to detect the extension type from a package directory
Gets a file name out of a url
Clean up temporary uploaded package and unpacked extension
Splits contents of a sql file into array of discreet queries.
Return the result of the checksum of a package with the SHA256/SHA384/SHA512 tags in the update server manifest
Details
static
array|boolean
unpack(
string $p_filename,
boolean $alwaysReturnArray = false)
Unpacks a file and verifies it as a Joomla element package Supports .gz .tar .tar.gz and .zip
static
mixed
detectType(
string $p_dir)
Method to detect the extension type from a package directory
static
boolean
cleanupInstall(
string $package,
string $resultdir)
Clean up temporary uploaded package and unpacked extension