Joomla CMS
2.5.24 (avec JPlatform 11.4 inclus)
Documentation des API du CMS Joomla en version 2.5 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
applyUpdateSite () | |
refreshUpdates ($force=false) | |
getUpdateInformation () | |
getFTPOptions () | |
download () | |
createRestorationFile ($basename=null) | |
finaliseUpgrade () | |
cleanUp () |
Fonctions membres protégées | |
downloadPackage ($url, $target) |
Additional Inherited Members | |
Fonctions membres publiques statiques inherited from JModelLegacy | |
static | addIncludePath ($path= '', $prefix= '') |
Fonctions membres publiques statiques inherited from JModel | |
static | addTablePath ($path) |
static | getInstance ($type, $prefix= '', $config=array()) |
JoomlaupdateModelDefault::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.
Références $db, $params, $query, et JComponentHelper\getParams().
JoomlaupdateModelDefault::cleanUp | ( | ) |
Removes the extracted package file
Références $file, $target, JFile\delete(), JFactory\getApplication(), JFactory\getConfig(), jimport(), JPATH_ROOT, et null.
JoomlaupdateModelDefault::createRestorationFile | ( | $basename = null | ) |
Références $data, $file, JPath\clean(), JFolder\create(), JFile\delete(), JFile\exists(), JUserHelper\genRandomPassword(), JFactory\getApplication(), JRequest\getCmd(), JFactory\getConfig(), JClientHelper\getCredentials(), JFTP\getInstance(), JRequest\getVar(), jimport(), JPATH_ROOT, JPATH_SITE, null, et JFile\write().
JoomlaupdateModelDefault::download | ( | ) |
Downloads the update package to the site
Références $target, JFile\exists(), JFactory\getConfig(), et jimport().
|
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, AdmintoolsHelperDownload\download(), et JLoader\import().
JoomlaupdateModelDefault::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, $query, $row, JText\_(), JPath\clean(), JFactory\getDbo(), JInstaller\getInstance(), JTable\getInstance(), if, jimport(), JPATH_MANIFESTS, JPATH_ROOT, et JText\sprintf().
JoomlaupdateModelDefault::getFTPOptions | ( | ) |
Returns an array with the configured FTP options
Références $config, et JFactory\getConfig().
JoomlaupdateModelDefault::getUpdateInformation | ( | ) |
Returns an array with the Joomla! update information
Références $db, $query, jimport(), JUpdate\loadFromXML(), et null.
JoomlaupdateModelDefault::refreshUpdates | ( | $force = false | ) |
Makes sure that the Joomla! update cache is up-to-date
bool | $force | Force reload, ignoring the cache timeout |
Références JUpdater\getInstance(), et JComponentHelper\getParams().