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é
Référence de la classe JoomlaupdateModelDefault
+ Graphe d'héritage de JoomlaupdateModelDefault:

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)
 

Description détaillée

Joomla! update overview Model

Depuis
2.5.4

Documentation des fonctions membres

◆ applyUpdateSite()

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.

Renvoie
void
Depuis
2.5.4

"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()

captiveFileExists ( )

Does the captive (temporary) file we uploaded before still exist?

Renvoie
boolean
Depuis
3.6.0

Références $file, JLoader\import(), et null.

◆ captiveLogin()

captiveLogin (   $credentials)

Checks the super admin credentials are valid for the currently logged in users

Paramètres
array$credentialsThe credentials to authenticate the user with
Renvoie
boolean
Depuis
3.6.0

Références $user, et null.

◆ cleanUp()

cleanUp ( )

Removes the extracted package file.

Renvoie
void
Depuis
2.5.4

Références $config, $file, $target, JPATH_COMPONENT_ADMINISTRATOR, JPATH_ROOT, et null.

◆ createRestorationFile()

createRestorationFile (   $basename = null)

Create restoration file.

Paramètres
string$basenameOptional base path to the file.
Renvoie
boolean True if successful; false otherwise.
Depuis
2.5.4

Références $app, $config, $data, $file, $filesize, $password, JPATH_COMPONENT_ADMINISTRATOR, JPATH_ROOT, et JPATH_SITE.

◆ download()

download ( )

Downloads the update package to the site.

Renvoie
boolean|string False on failure, basename of the file in any other case.
Depuis
2.5.4

Références $config, $filesize, $name, et $target.

◆ downloadPackage()

downloadPackage (   $url,
  $target 
)
protected

Downloads a package file to a specific directory

Paramètres
string$urlThe URL to download from
string$targetThe directory to store the file
Renvoie
boolean True on success
Depuis
2.5.4

Références $target, $url, JLoader\import(), jimport(), JPATH_COMPONENT_ADMINISTRATOR, et null.

◆ finaliseUpgrade()

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.

Renvoie
boolean True on success.
Depuis
2.5.4

Références $db, $id, $manifest, $query, $row, JPATH_ADMINISTRATOR, JPATH_MANIFESTS, JPATH_ROOT, et JLoader\register().

◆ getFTPOptions()

getFTPOptions ( )

Returns an array with the configured FTP options.

Renvoie
array
Depuis
2.5.4

Références $config.

◆ getUpdateInformation()

getUpdateInformation ( )

Returns an array with the Joomla! update information.

Renvoie
array
Depuis
2.5.4

Références $db, $query, jimport(), et null.

◆ isChecksumValid()

isChecksumValid (   $packagefile,
  $updateObject 
)
private

Return the result of the checksum of a package with the SHA256/SHA384/SHA512 tags in the update server manifest

Paramètres
string$packagefileLocation of the package to be installed
JUpdate$updateObjectThe Update Object
Renvoie
boolean False in case the validation did not work; true in any other case.
Note
This method has been forked from (JInstallerHelper::isChecksumValid) so it does not depend on an up-to-date InstallerHelper at the update time
Depuis
3.9.0

Références $hash.

◆ purge()

purge ( )

Removes all of the updates from the table and enable all update streams.

Renvoie
boolean Result of operation.
Depuis
3.0

Références $db, et $query.

◆ refreshUpdates()

refreshUpdates (   $force = false)

Makes sure that the Joomla! update cache is up-to-date.

Paramètres
boolean$forceForce reload, ignoring the cache timeout.
Renvoie
void
Depuis
2.5.4

◆ removePackageFiles()

removePackageFiles ( )

Remove the captive (temporary) file we uploaded before and the .

Renvoie
void
Depuis
3.6.0

Références $file, $files, JLoader\import(), et null.

◆ upload()

upload ( )

Uploads what is presumably an update ZIP file under a mangled name in the temporary directory.

Renvoie
void
Depuis
3.6.0

Références $config, $input, jimport(), et null.


La documentation de cette classe a été générée à partir du fichier suivant :