[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Installer/ -> LegacyInstallerScript.php (summary)

Joomla! Content Management System

Copyright: (C) 2022 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 180 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

LegacyInstallerScript:: (10 methods):
  __construct()
  install()
  update()
  uninstall()
  preflight()
  postflight()
  __set()
  __get()
  __call()
  callOnScript()


Class: LegacyInstallerScript  - X-Ref

Legacy installer script which delegates the methods to the internal instance when possible.

__construct($installerScript)   X-Ref

param: \stdClass  $installerScript  The script instance

install(InstallerAdapter $adapter)   X-Ref
Function called after the extension is installed.

param: InstallerAdapter  $adapter  The adapter calling this method
return: boolean  True on success

update(InstallerAdapter $adapter)   X-Ref
Function called after the extension is updated.

param: InstallerAdapter  $adapter  The adapter calling this method
return: boolean  True on success

uninstall(InstallerAdapter $adapter)   X-Ref
Function called after the extension is uninstalled.

param: InstallerAdapter  $adapter  The adapter calling this method
return: boolean  True on success

preflight(string $type, InstallerAdapter $adapter)   X-Ref
Function called before extension installation/update/removal procedure commences.

param: string            $type     The type of change (install or discover_install, update, uninstall)
param: InstallerAdapter  $adapter  The adapter calling this method
return: boolean  True on success

postflight(string $type, InstallerAdapter $adapter)   X-Ref
Function called after extension installation/update/removal procedure commences.

param: string            $type     The type of change (install or discover_install, update, uninstall)
param: InstallerAdapter  $adapter  The adapter calling this method
return: boolean  True on success

__set(string $name, $value)   X-Ref
Sets the variable to the internal script.

param: string $name   The name of the variable
param: mixed  $value  The value of the variable
return: void

__get(string $name)   X-Ref
Returns the variable from the internal script.

param: string $name  The name of the variable
return: mixed

__call(string $name, array $arguments)   X-Ref
Calls the function with the given name on the internal script with
the given name and arguments.

param: string $name       The name of the function
param: array  $arguments  The arguments
return: mixed

callOnScript(string $name, array $arguments)   X-Ref
Calls the function with the given name on the internal script with
some condition checking.

param: string $name       The name of the function
param: array  $arguments  The arguments
return: bool



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer