[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
Joomla! Content Management System
Copyright: | (C) 2007 Open Source Matters, Inc. |
License: | GNU General Public License version 2 or later; see LICENSE.txt |
File Size: | 361 lines (11 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
downloadPackage($url, $target = false) X-Ref |
Downloads a package param: string $url URL of file to download param: string|bool $target Download target filename or false to get the filename from the URL return: string|boolean Path to downloaded package or boolean false on failure |
unpack($packageFilename, $alwaysReturnArray = false) X-Ref |
Unpacks a file and verifies it as a Joomla element package Supports .gz .tar .tar.gz and .zip param: string $packageFilename The uploaded package filename or install directory param: boolean $alwaysReturnArray If should return false (and leave garbage behind) or return $retval['type']=false return: array|boolean Array on success or boolean false on failure |
detectType($packageDirectory) X-Ref |
Method to detect the extension type from a package directory param: string $packageDirectory Path to package directory return: mixed Extension type string or boolean false on fail |
getFilenameFromUrl($url) X-Ref |
Gets a file name out of a url param: string $url URL to get name from return: string Clean version of the filename or a unique id |
cleanupInstall($package, $resultdir) X-Ref |
Clean up temporary uploaded package and unpacked extension param: string $package Path to the uploaded package file param: string $resultdir Path to the unpacked extension return: boolean True on success |
isChecksumValid($packagefile, $updateObject) X-Ref |
Return the result of the checksum of a package with the SHA256/SHA384/SHA512 tags in the update server manifest param: string $packagefile Location of the package to be installed param: Update $updateObject The Update Object return: integer one if the hashes match, zero if hashes doesn't match, two if hashes not found |
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |