Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 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 () | |
getPhpOptions () | |
getPhpSettings () | |
isDatabaseTypeSupported () | |
isPhpVersionSupported () | |
getIniParserAvailability () | |
getNonCoreExtensions () | |
getNonCorePlugins ($folderFilter=array()) | |
fetchCompatibility ($extensionID, $joomlaTargetVersion) | |
isTemplateActive ($template) | |
Fonctions membres protégées | |
downloadPackage ($url, $target) | |
translateExtensionName (&$item) | |
Fonctions membres privées | |
isChecksumValid ($packagefile, $updateObject) | |
getConfiguredDatabaseType () | |
getTargetMinimumPHPVersion () | |
getDatabaseSchemaCheck () | |
getUpdateSitesInfo ($extensionID) | |
getCollectionDetailsUrls ($updateSiteInfo, $joomlaTargetVersion) | |
checkCompatibility ($updateFileUrl, $joomlaTargetVersion) | |
Fonctions membres privées statiques | |
static | isNonCoreExtension ($extension) |
Attributs privés | |
$updateInformation = null | |
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 'sts': (It's shown as "Default" because that option does not exist any more) 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 | ) |
|
private |
Method to check non core extensions for compatibility.
string | $updateFileUrl | The items update XML url. |
string | $joomlaTargetVersion | The Joomla! version to test against |
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 | ( | ) |
Downloads the update package to the site.
Références $config, $filesize, $name, $target, et Registry\set().
|
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.
fetchCompatibility | ( | $extensionID, | |
$joomlaTargetVersion | |||
) |
Called by controller's fetchExtensionCompatibility, which is called via AJAX.
string | $extensionID | The ID of the checked extension |
string | $joomlaTargetVersion | Target version of Joomla |
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().
|
private |
Method to get details URLs from a colletion update site for given extension and Joomla target version.
array | $updateSiteInfo | The update site and extension information record to process |
string | $joomlaTargetVersion | The Joomla! version to test against, |
Références $attribs, $extension, $key, $return, $value, et null.
|
private |
Returns the configured database type id (mysqli or sqlsrv or ...)
|
private |
Check if database structure is up to date
Références JPATH_ADMINISTRATOR.
getFTPOptions | ( | ) |
getIniParserAvailability | ( | ) |
Checks the availability of the parse_ini_file and parse_ini_string functions. TODO: Outsource, build common code base for pre install and pre update check
Références $i.
getNonCoreExtensions | ( | ) |
Gets an array containing all installed extensions, that are not core extensions.
Références $db, $extension, $query, et $rows.
getNonCorePlugins | ( | $folderFilter = array() | ) |
getPhpOptions | ( | ) |
getPhpSettings | ( | ) |
Gets PHP Settings. TODO: Outsource, build common code base for pre install and pre update check
|
private |
Returns the PHP minimum version for the update. Returns JOOMLA_MINIMUM_PHP, if there is no information given.
Références JOOMLA_MINIMUM_PHP.
getUpdateInformation | ( | ) |
|
private |
|
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.
isDatabaseTypeSupported | ( | ) |
Returns true, if J! version is < 4 or current configured database type is compatible with the update.
|
staticprivate |
Checks if extension is non core extension.
object | $extension | The extension to be checked |
Références $extension.
isPhpVersionSupported | ( | ) |
Returns true, if current installed php version is compatible with the update.
isTemplateActive | ( | $template | ) |
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.
|
protected |
Translates an extension name
object | &$item | The extension of which the name needs to be translated |
Références $extension, $item, $lang, $path, JPATH_ADMINISTRATOR, JPATH_PLUGINS, JPATH_SITE, et null.
upload | ( | ) |
|
private |