Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__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) | |
Champs de données | |
$manifest = null | |
Fonctions membres protégées | |
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 | |
$changelogurl = null | |
$currentExtensionId = null | |
$element = null | |
$extension = null | |
$extensionMessage = '' | |
$manifest_script = null | |
$name = null | |
$parent = null | |
$route = 'install' | |
$supportsDiscoverInstall = true | |
$type | |
Abstract adapter for the installer.
__construct | ( | Installer | $parent, |
DatabaseDriver | $db, | ||
array | $options = array() |
||
) |
Constructor
Installer | $parent | Parent object |
DatabaseDriver | $db | Database object |
array | $options | Configuration Options |
Références $key, $options, $this, $value, extension, Table\getInstance(), parent, et Joomla\Database\setDatabase().
__get | ( | $name | ) |
Proxy for db variable.
string | $name | The name of the element |
Références $name, Joomla\Database\getDatabase(), et null.
|
protected |
Check if a package extension allows its child extensions to be uninstalled individually
integer | $packageId | The extension ID of the package to check |
Références $manifest, $xml, Table\getInstance(), JPATH_MANIFESTS, et parent.
|
protected |
Method to check if the extension is already present in the database
Références Text\_(), extension, et Text\sprintf().
|
protected |
Method to check if the extension is present in the filesystem, flags the route as update if so
Références Text\_(), elseif, parent, et Text\sprintf().
|
abstractprotected |
Method to copy the extension's base files from the <files>
tag(s) and the manifest file
|
protected |
Method to create the extension root path if necessary
Références Text\_(), Folder\create(), parent, et Text\sprintf().
discover_install | ( | ) |
Generic discover_install method for extensions
Références $description, Text\_(), extension, name, et parent.
|
protected |
|
protected |
Load language files
string | $extension | The name of the extension |
string | $source | Path to the extension |
string | $base | Base path for the extension language |
Références $base, $extension, $lang, et Factory\getLanguage().
|
abstractprotected |
Method to finalise the installation processing
|
abstractprotected |
Method to finalise the uninstallation processing
getDiscoverInstallSupported | ( | ) |
Checks if the adapter supports discover_install
getElement | ( | $element = null | ) |
Get the filtered extension element from the manifest
string | $element | Optional element name to be converted |
Références InputFilter\getInstance().
getName | ( | ) |
Get the filtered component name from the manifest
Références $name, et InputFilter\getInstance().
getParent | ( | ) |
getRoute | ( | ) |
|
protected |
Get the class name for the install adapter script.
Références $className, et InputFilter\getInstance().
install | ( | ) |
Generic install method for extensions
Références $description, Text\_(), extension, name, et parent.
|
protected |
Method to parse optional tags in the manifest
|
protected |
prepareDiscoverInstall | ( | ) |
Prepares the adapter for a discover_install task
|
abstractprotected |
Removes this extension's files
setManifest | ( | $manifest | ) |
Set the manifest object.
object | $manifest | The manifest object |
setRoute | ( | $route | ) |
Set the install route being followed
string | $route | The install route being followed |
|
abstractprotected |
Method to do any prechecks and setup the install paths for the extension
|
protected |
Setup the manifest script file for those adapters that use it.
Références $container, $this, class, Joomla\DI\getContainer(), Factory\getContainer(), null, parent, et JLoader\register().
|
abstractprotected |
Method to do any prechecks and setup the uninstall job
|
protected |
Method to setup the update routine for the adapter
|
abstractprotected |
Method to store the extension to the database
|
protected |
Executes a custom install script method
string | $method | The install method to execute |
Références $method, $this, Text\_(), parent, et Text\sprintf().
uninstall | ( | $id | ) |
Generic update method for extensions
integer | $id | The extension ID |
Références $id, $this, Text\_(), Log\add(), elseif, extension, name, Text\sprintf(), et Log\WARNING.
update | ( | ) |
Generic update method for extensions
Références parent.
|
protected |
|
protected |
|
protected |
|
protected |
$manifest = null |
|
protected |
|
protected |
|
protected |
|
protected |