InstallerScript
class InstallerScript
Base install script for use by extensions providing helper methods for common behaviours.
Methods
Function called before extension installation/update/removal procedure commences
Gets each instance of a module in the #__modules table
Gets parameter value in the extensions row of the extension table
Sets parameter values in the extensions row of the extension table. Note that the this must be called separately for deleting and editing. Note if edit is called as a type then if the param doesn't exist it will be created
Builds a standard select query to produce better DRY code in this script.
Remove the files and folders in the given array from
Moves the CLI scripts into the CLI folder in the CMS
Details
boolean
preflight(
string $type,
InstallerAdapter $parent)
Function called before extension installation/update/removal procedure commences
string
getParam(
string $name,
integer $id)
Gets parameter value in the extensions row of the extension table
boolean
setParams(
array $param_array = null,
string $type = 'edit',
integer $id)
Sets parameter values in the extensions row of the extension table. Note that the this must be called separately for deleting and editing. Note if edit is called as a type then if the param doesn't exist it will be created