\JInstallerAdapterPlugin
Plugin installer
Synopsis
class JInstallerAdapterPlugin
extends JAdapterInstance
{
- // members
- protected $route;
- protected SimpleXMLElement $manifest;
- protected $manifest_script;
- protected $name;
- protected $scriptElement;
- protected $oldFiles;
- // Inherited members from JAdapterInstance
- protected JAdapter $parent;
- protected JDatabaseDriver $db;
- // Inherited members from JObject
- protected $_errors;
- // methods
- public void loadLanguage()
- public boolean install()
- public boolean update()
- public boolean uninstall()
- public array discover()
- public mixed discover_install()
- public boolean refreshManifestCache()
- // Inherited methods from JAdapterInstance
- public void __construct()
- public JAdapter getParent()
- // Inherited methods from JObject
- public void __construct()
- public string __toString()
- public mixed def()
- public mixed get()
- public array getProperties()
- public string getError()
- public array getErrors()
- public mixed set()
- public boolean setProperties()
- public void setError()
Hierarchy
Tasks
Tasks
Line | Task |
---|---|
170 | Deprecate in future version |
Members
protected
- $_errors
—
array
An array of error messages or Exception objects. - $db
—
JDatabaseDriver
Database - $manifest
—
SimpleXMLElement
The installation manifest XML object - $manifest_script
—
string
A path to the PHP file that the scriptfile declaration in the manifest refers to. - $name
—
string
Name of the extension - $oldFiles
—
<files> element of the old extension manifest - $parent
—
JAdapter
Parent - $route
—
string
Install function routing - $scriptElement
—
<scriptfile> element of the extension manifest
Methods
public
- discover() — Custom discover method
- discover_install() — Custom discover_install method.
- install() — Custom install method
- loadLanguage() — Custom loadLanguage method
- refreshManifestCache() — Refreshes the extension table cache.
- uninstall() — Custom uninstall method
- update() — Custom update method
Inherited from JAdapterInstance
public
- getParent() — Retrieves the parent object
Inherited from JObject
public
- __toString() — Magic method to convert the object to a string gracefully.
- def() — Sets a default value if not alreay assigned
- get() — Returns a property of the object or the default value if the property is not set.
- getError() — Get the most recent error message.
- getErrors() — Return all errors, if any.
- getProperties() — Returns an associative array of object properties.
- set() — Modifies a property of the object, creating it if it does not already exist.
- setError() — Add an error message.
- setProperties() — Set the object properties based on a named array/hash.