\JInstallerAdapterComponent
Component installer
Synopsis
class JInstallerAdapterComponent
extends JAdapterInstance
{
- // members
- protected $manifest;
- protected $name;
- protected $element;
- protected $oldAdminFiles;
- protected $oldFiles;
- protected $manifest_script;
- protected $install_script;
- // 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 mixed uninstall()
- protected boolean _buildAdminMenus()
- protected boolean _removeAdminMenus()
- protected boolean _rollback_menu()
- 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 |
---|---|
1746 | remove code: $this->parent->parseMedia($this->manifest->media); |
1748 | remove code: $this->parent->parseLanguages($this->manifest->languages); |
1749 | remove code: $this->parent->parseLanguages($this->manifest->administration->languages, 1); |
Members
protected
- $_errors
—
array
An array of error messages or Exception objects. - $db
—
JDatabaseDriver
Database - $element
—
string
The unique identifier for the extension (e.g. mod_login) - $install_script
—
string
For legacy installations this is a path to the PHP file that the scriptfile declaration in the manifest refers to. - $manifest
—
string
Copy of the XML manifest file - $manifest_script
—
string
A path to the PHP file that the scriptfile declaration in the manifest refers to. - $name
—
string
Name of the extension - $oldAdminFiles
—
array
The list of current files fo the Joomla! CMS administrator that are installed and is read from the manifest on disk in the update area to handle doing a diff and deleting files that are in the old files list and not in the new files list. - $oldFiles
—
array
The list of current files that are installed and is read from the manifest on disk in the update area to handle doing a diff and deleting files that are in the old files list and not in the new files list. - $parent
—
JAdapter
Parent
Methods
protected
- _buildAdminMenus() — Method to build menu database entries for a component
- _removeAdminMenus() — Method to remove admin menu references to a component
public
- discover() — Discover unregistered extensions.
- discover_install() — Install unregistered extensions that have been discovered.
- install() — Custom install method for components
- loadLanguage() — Custom loadLanguage method
- refreshManifestCache() — Refreshes the extension table cache
- uninstall() — Custom uninstall method for components
- update() — Custom update method for components
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.