Joomla CMS
3.9.25 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.9.25 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
applyUpdateSite () | |
refreshUpdates ($force=false) | |
getUpdateInformation () | |
getFTPOptions () | |
purge () | |
download () | |
createRestorationFile ($basename=null) | |
finaliseUpgrade () | |
cleanUp () | |
upload () | |
captiveLogin ($credentials) | |
captiveFileExists () | |
removePackageFiles () | |
Fonctions membres protégées | |
downloadPackage ($url, $target) | |
Fonctions membres privées | |
isChecksumValid ($packagefile, $updateObject) | |
Joomla! update overview Model
applyUpdateSite | ( | ) |
Detects if the Joomla! update site currently in use matches the one configured in this component. If they don't match, it changes it.
"Minor & Patch Release for Current version (recommended and default)". The commented "case" below are for documenting where 'default' and legacy options falls case 'default': case 'lts': case 'nochange':
Références $db, $params, $query, et JError\raiseWarning().
captiveFileExists | ( | ) |
Does the captive (temporary) file we uploaded before still exist?
Références $file, JLoader\import(), et null.
captiveLogin | ( | $credentials | ) |
cleanUp | ( | ) |
Removes the extracted package file.
Références $config, $file, $target, JPATH_COMPONENT_ADMINISTRATOR, JPATH_ROOT, et null.
createRestorationFile | ( | $basename = null | ) |
Create restoration file.
string | $basename | Optional base path to the file. |
Références $app, $config, $data, $file, $filesize, $password, JPATH_COMPONENT_ADMINISTRATOR, JPATH_ROOT, et JPATH_SITE.
download | ( | ) |
|
protected |
Downloads a package file to a specific directory
string | $url | The URL to download from |
string | $target | The directory to store the file |
Références $target, $url, JLoader\import(), jimport(), JPATH_COMPONENT_ADMINISTRATOR, et null.
finaliseUpgrade | ( | ) |
Runs the schema update SQL files, the PHP update script and updates the manifest cache and #__extensions entry. Essentially, it is identical to JInstallerFile::install() without the file copy.
Références $db, $id, $manifest, $query, $row, JPATH_ADMINISTRATOR, JPATH_MANIFESTS, JPATH_ROOT, et JLoader\register().
getFTPOptions | ( | ) |
getUpdateInformation | ( | ) |
|
private |
Return the result of the checksum of a package with the SHA256/SHA384/SHA512 tags in the update server manifest
string | $packagefile | Location of the package to be installed |
JUpdate | $updateObject | The Update Object |
Références $hash.
purge | ( | ) |
refreshUpdates | ( | $force = false | ) |
Makes sure that the Joomla! update cache is up-to-date.
boolean | $force | Force reload, ignoring the cache timeout. |
removePackageFiles | ( | ) |
Remove the captive (temporary) file we uploaded before and the .
Références $file, $files, JLoader\import(), et null.
upload | ( | ) |