LegacyInstallerScript
Implements InstallerScriptInterfaceLegacy installer script which delegates the methods to the internal instance when possible.
since |
4.2.0 |
---|---|
package |
Joomla CMS |
Methods
__call
Calls the function with the given name on the internal script with the given name and arguments.
__call(string name, array arguments) : mixed
since |
4.2.0 |
---|
Arguments
- name
string
The name of the function- arguments
array
The arguments
Response
mixed
__construct
__construct(\stdClass installerScript) : mixed
Arguments
- installerScript
\stdClass
The script instance
Response
mixed
__get
Returns the variable from the internal script.
__get(string name) : mixed
since |
4.2.0 |
---|
Arguments
- name
string
The name of the variable
Response
mixed
__set
Sets the variable to the internal script.
__set(string name, mixed value) : void
since |
4.2.0 |
---|
Arguments
- name
string
The name of the variable- value
mixed
The value of the variable
callOnScript
Calls the function with the given name on the internal script with some condition checking.
callOnScript(string name, array arguments) : bool
since |
4.2.0 |
---|
Arguments
- name
string
The name of the function- arguments
array
The arguments
Response
bool
install
Function called after the extension is installed.
install(\Joomla\CMS\Installer\InstallerAdapter adapter) : bool
since |
4.2.0 |
---|
Arguments
- adapter
\Joomla\CMS\Installer\InstallerAdapter
The adapter calling this method
Response
bool
True on success
postflight
Function called after extension installation/update/removal procedure commences.
postflight(string type, \Joomla\CMS\Installer\InstallerAdapter adapter) : bool
since |
4.2.0 |
---|
Arguments
- type
string
The type of change (install or discover_install, update, uninstall)- adapter
\Joomla\CMS\Installer\InstallerAdapter
The adapter calling this method
Response
bool
True on success
preflight
Function called before extension installation/update/removal procedure commences.
preflight(string type, \Joomla\CMS\Installer\InstallerAdapter adapter) : bool
since |
4.2.0 |
---|
Arguments
- type
string
The type of change (install or discover_install, update, uninstall)- adapter
\Joomla\CMS\Installer\InstallerAdapter
The adapter calling this method
Response
bool
True on success
uninstall
Function called after the extension is uninstalled.
uninstall(\Joomla\CMS\Installer\InstallerAdapter adapter) : bool
since |
4.2.0 |
---|
Arguments
- adapter
\Joomla\CMS\Installer\InstallerAdapter
The adapter calling this method
Response
bool
True on success
update
Function called after the extension is updated.
update(\Joomla\CMS\Installer\InstallerAdapter adapter) : bool
since |
4.2.0 |
---|
Arguments
- adapter
\Joomla\CMS\Installer\InstallerAdapter
The adapter calling this method
Response
bool
True on success
Properties
installerScript
since |
4.2.0 |
---|
Type(s)
\stdClass