Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
getElement ($element=null) | |
loadLanguage ($path) | |
onExtensionAfterInstall (Event $event) | |
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 | |
checkExtensionInFilesystem () | |
copyBaseFiles () | |
createExtensionRoot () | |
finaliseUninstall () | |
parseOptionalTags () | |
removeExtensionFiles () | |
setupInstallPaths () | |
setupUninstall () | |
storeExtension () | |
triggerManifestScript ($method) | |
_getExtensionId ($type, $id, $client, $group) | |
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 | |
$installedIds = array() | |
$results = array() | |
$supportsDiscoverInstall = 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 | |
Membres hérités additionnels | |
Champs de données hérités de InstallerAdapter | |
$manifest = null | |
Package installer
|
protected |
Gets the extension id.
string | $type | The extension type. |
string | $id | The name of the extension (the element field). |
integer | $client | The application id (0: Joomla CMS site; 1: Joomla CMS administrator). |
string | $group | The extension group (mainly for plugins). |
Références $client, $clientId, $db, $id, $query, $type, ApplicationHelper\getClientInfo(), Joomla\Database\getDatabase(), et ParameterType\INTEGER.
|
protected |
Method to check if the extension is present in the filesystem, flags the route as update if so
Références Text\_(), elseif, JPATH_MANIFESTS, parent, et Text\sprintf().
|
protected |
Method to copy the extension's base files from the <files>
tag(s) and the manifest file
Références $folder, $this, Text\_(), InstallerHelper\detectType(), Factory\getApplication(), Joomla\Database\getDatabase(), parent, Text\sprintf(), et InstallerHelper\unpack().
|
protected |
Method to create the extension root path if necessary
|
protected |
Method to finalise the uninstallation processing
Références $db, $folder, $query, $this, File\delete(), Folder\delete(), Folder\exists(), extension, Joomla\Database\getDatabase(), Table\getInstance(), ParameterType\INTEGER, JPATH_MANIFESTS, et parent.
getElement | ( | $element = null | ) |
Get the filtered extension element from the manifest
string | $element | Optional element name to be converted |
Références InputFilter\getInstance().
loadLanguage | ( | $path | ) |
Load language from a path
string | $path | The path of the language. |
Références $path.
onExtensionAfterInstall | ( | Event | $event | ) |
Handler for the onExtensionAfterInstall
event
Event | $event | The event |
Références AbstractEvent\getArgument().
|
protected |
refreshManifestCache | ( | ) |
Refreshes the extension table cache
Références Text\_(), Log\add(), JPATH_MANIFESTS, parent, Installer\parseXMLInstallFile(), et Log\WARNING.
|
protected |
Removes this extension's files
Références $extension, $id, $manifest, Text\_(), Log\add(), extension, Joomla\Database\getDatabase(), JPATH_MANIFESTS, parent, Text\sprintf(), et Log\WARNING.
|
protected |
Method to do any prechecks and setup the install paths for the extension
Références Text\_(), JPATH_MANIFESTS, parent, et Text\sprintf().
|
protected |
Method to do any prechecks and setup the uninstall job
Références $manifest, $xml, Text\_(), extension, JPATH_MANIFESTS, JPATH_SITE, et parent.
|
protected |
|
protected |
Executes a custom install script method
string | $method | The install method to execute |
Références $method, $this, Text\_(), parent, et Text\sprintf().
|
protected |
|
protected |
|
protected |