Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
install () | |
update () | |
discover () | |
discover_install () | |
refreshManifestCache () | |
Fonctions membres publiques hérités de InstallerAdapter | |
__construct (Installer $parent, DatabaseDriver $db, array $options=array()) | |
discover_install () | |
getDiscoverInstallSupported () | |
getElement ($element=null) | |
getManifest () | |
getName () | |
getParent () | |
getRoute () | |
install () | |
prepareDiscoverInstall () | |
setManifest ($manifest) | |
setRoute ($route) | |
uninstall ($id) | |
update () | |
__get ($name) | |
Fonctions membres publiques hérités de ContainerAwareInterface | |
setContainer (Container $container) | |
Fonctions membres publiques hérités de DatabaseAwareInterface | |
setDatabase (DatabaseInterface $db) | |
Fonctions membres protégées | |
copyBaseFiles () | |
finaliseInstall () | |
finaliseUninstall () | |
removeExtensionFiles () | |
setupInstallPaths () | |
setupUninstall () | |
storeExtension () | |
getSefString ($itemLanguageTag) | |
createContentLanguage ($tag) | |
Fonctions membres protégées hérités de InstallerAdapter | |
canUninstallPackageChild ($packageId) | |
checkExistingExtension () | |
checkExtensionInFilesystem () | |
copyBaseFiles () | |
createExtensionRoot () | |
doDatabaseTransactions () | |
doLoadLanguage ($extension, $source, $base=JPATH_ADMINISTRATOR) | |
finaliseInstall () | |
finaliseUninstall () | |
getScriptClassName () | |
parseQueries () | |
parseOptionalTags () | |
removeExtensionFiles () | |
setupInstallPaths () | |
setupScriptfile () | |
setupUninstall () | |
setupUpdates () | |
storeExtension () | |
triggerManifestScript ($method) | |
Attributs protégés | |
$core = false | |
$tag | |
$ignoreUninstallQueries = false | |
Attributs protégés hérités de InstallerAdapter | |
$changelogurl = null | |
$currentExtensionId = null | |
$element = null | |
$extension = null | |
$extensionMessage = '' | |
$manifest_script = null | |
$name = null | |
$parent = null | |
$route = 'install' | |
$supportsDiscoverInstall = true | |
$type | |
Fonctions membres privées | |
resetUserLanguage () | |
Membres hérités additionnels | |
Champs de données hérités de InstallerAdapter | |
$manifest = null | |
Language installer
|
protected |
Method to copy the extension's base files from the <files>
tag(s) and the manifest file
|
protected |
Create an unpublished content language.
$tag | string The language tag |
Références Log\add(), Factory\getApplication(), Table\getInstance(), JPATH_INSTALLATION, JPATH_SITE, Log\NOTICE, LanguageHelper\parseXMLLanguageFile(), et Text\sprintf().
discover | ( | ) |
Custom discover method Finds language files
Références $basePath, $clientId, $extension, $language, $languages, $results, Folder\folders(), Table\getInstance(), JPATH_ADMINISTRATOR, JPATH_API, JPATH_SITE, et Installer\parseXMLInstallFile().
discover_install | ( | ) |
Custom discover install method Basically updates the manifest cache and leaves everything alone
Références $client, Text\_(), Log\add(), Factory\getCache(), ApplicationHelper\getClientInfo(), parent, Installer\parseXMLInstallFile(), et Log\WARNING.
|
protected |
Method to finalise the installation processing
|
protected |
Method to finalise the uninstallation processing
Références $db, $query, $this, extension, Factory\getCache(), Joomla\Database\getDatabase(), Table\getInstance(), et ParameterType\INTEGER.
|
protected |
Gets a unique language SEF string.
This function checks other existing language with the same code, if they exist provides a unique SEF name. For instance: en-GB, en-US and en-AU will share the same SEF code by default: www.mywebsite.com/en/ To avoid this conflict, this function creates an specific SEF in case of existing conflict: For example: www.mywebsite.com/en-au/
Références $db, $langs, $query, et Joomla\Database\getDatabase().
install | ( | ) |
Custom install method
Note: This behaves badly due to hacks made in the middle of 1.5.x to add the ability to install multiple distinct packs in one install. The preferred method is to use a package to install multiple language packs.
Références $basePath, $client, $clientId, $this, ApplicationHelper\getClientInfo(), JPATH_SITE, null, parent, et Text\sprintf().
refreshManifestCache | ( | ) |
Refreshes the extension table cache
Références $client, Text\_(), Log\add(), ApplicationHelper\getClientInfo(), parent, Installer\parseXMLInstallFile(), et Log\WARNING.
|
protected |
Removes this extension's files
Références $path, Text\_(), Log\add(), Folder\delete(), extension, ApplicationHelper\getClientInfo(), parent, et Log\WARNING.
|
private |
Resets user language to default language
Références $client, $count, $db, $query, $user, $userId, Log\add(), extension, ApplicationHelper\getClientInfo(), Joomla\Database\getDatabase(), ParameterType\INTEGER, Log\NOTICE, et Text\plural().
|
protected |
Method to do any prechecks and setup the install paths for the extension
|
protected |
Method to do any prechecks and setup the uninstall job
Références $client, $params, $path, Text\_(), Folder\exists(), extension, ApplicationHelper\getClientInfo(), ComponentHelper\getParams(), et parent.
|
protected |
Method to store the extension to the database
update | ( | ) |
Custom update method
Références $basePath, $client, $clientId, $name, $xml, Text\_(), Factory\getCache(), ApplicationHelper\getClientInfo(), InputFilter\getInstance(), Table\getInstance(), if, null, parent, et Text\sprintf().
|
protected |
|
protected |
|
protected |