Back to Joomla project (class list)

Class PackageAdapter - list of methods

Package installer

Extends

Package: Joomla\CMS\Installer\Adapter
Copyright: (C) 2008 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Installer/Adapter/PackageAdapter.php
Project: Joomla

Method Summary

protected void
()

Method to check if the extension is present in the filesystem, flags the route as update if so
Returns
  • void
Since
  • 3.4
-
  • \RuntimeException
Show source code of this method: checkExtensionInFilesystem Source Code

protected void
()

Method to copy the extension's base files from the `<files>` tag(s) and the manifest file
Returns
  • void
Since
  • 3.4
-
  • \RuntimeException
Show source code of this method: copyBaseFiles Source Code

protected void
()

Method to create the extension root path if necessary
Returns
  • void
Since
  • 3.4
-
  • \RuntimeException
Show source code of this method: createExtensionRoot Source Code

protected void
()

Method to finalise the installation processing
Returns
  • void
Since
  • 3.4
-
  • \RuntimeException
Show source code of this method: finaliseInstall Source Code

protected bool
()

Method to finalise the uninstallation processing
Returns
  • bool
Since
  • 4.0.0
-
  • \RuntimeException
Show source code of this method: finaliseUninstall Source Code

public string
(mixed $element = null)

Get the filtered extension element from the manifest
Parameters
  • string $element Optional element name to be converted
Returns
  • string The filtered element
Since
  • 3.4
Show source code of this method: getElement Source Code

public void
(mixed $path)

Load language from a path
Parameters
  • string $path The path of the language.
Returns
  • void
Since
  • 3.1
Show source code of this method: loadLanguage Source Code

public void
(\Joomla\Event\Event $event)

Handler for the `onExtensionAfterInstall` event
Parameters
  • \Joomla\Event\Event $event The event
Returns
  • void
Since
  • 3.7.0
Show source code of this method: onExtensionAfterInstall Source Code

protected void
()

Method to parse optional tags in the manifest
Returns
  • void
Since
  • 3.4
Show source code of this method: parseOptionalTags Source Code

protected void
()

Removes this extension's files
Returns
  • void
Since
  • 4.0.0
-
  • \RuntimeException
Show source code of this method: removeExtensionFiles Source Code

protected void
()

Method to do any prechecks and setup the install paths for the extension
Returns
  • void
Since
  • 3.4
-
  • \RuntimeException
Show source code of this method: setupInstallPaths Source Code

protected void
()

Method to do any prechecks and setup the uninstall job
Returns
  • void
Since
  • 4.0.0
Show source code of this method: setupUninstall Source Code

protected void
()

Method to store the extension to the database
Returns
  • void
Since
  • 3.4
-
  • \RuntimeException
Show source code of this method: storeExtension Source Code

protected bool
(mixed $method)

Executes a custom install script method
Parameters
  • string $method The install method to execute
Returns
  • bool True on success
Since
  • 3.4
Show source code of this method: triggerManifestScript Source Code

protected int
(mixed $type, mixed $id, mixed $client, mixed $group)

Gets the extension id.
Parameters
  • string $type The extension type.
  • string $id The name of the extension (the element field).
  • int $client The application id (0: Joomla CMS site; 1: Joomla CMS administrator).
  • string $group The extension group (mainly for plugins).
Returns
  • int
Since
  • 3.1
Show source code of this method: _getExtensionId Source Code

public bool
()

Refreshes the extension table cache
Returns
  • bool Result of operation, true if updated, false on failure
Since
  • 3.1
Show source code of this method: refreshManifestCache Source Code

Properties Summary

protected array
$installedIds
An array of extension IDs for each installed extension
Since
  • 3.7.0
protected array
$results
The results of each installed extensions
Since
  • 3.1
protected bool
$supportsDiscoverInstall
Flag if the adapter supports discover installs
Since
  • 3.4

Tags Summary

Since
3.1