JInstallerHelper
class JInstallerHelper
Installer helper class
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.
Details
at line 35
static mixed
downloadPackage(string $url, string $target = false)
Downloads a package
at line 113
static array
unpack(string $p_filename)
Unpacks a file and verifies it as a Joomla element package Supports .gz .tar .tar.gz and .zip
at line 185
static mixed
detectType(string $p_dir)
Method to detect the extension type from a package directory
at line 229
static mixed
getFilenameFromURL(string $url)
Gets a file name out of a url
at line 248
static boolean
cleanupInstall(string $package, string $resultdir)
Clean up temporary uploaded package and unpacked extension
at line 276
static array
splitSql(string $sql)
Splits contents of a sql file into array of discreet queries.
Queries need to be delimited with end of statement marker ';'