Class JInstallerScript
Base install script for use by extensions providing helper methods for common behaviours.
Copyright: Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt
Since: 3.6
Located at cms/installer/script.php
Methods summary
public
boolean
|
#
preflight( string $type,
Function called before extension installation/update/removal procedure commences |
public
array
|
|
public
string
|
|
public
boolean
|
#
setParams( array $param_array = null, string $type = 'edit', integer $id = 0 )
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 |
public
array
|
#
getItemArray( string $element, string $table, string $column, mixed $identifier )
Builds a standard select query to produce better DRY code in this script. This should produce a single unique cell which is json encoded - it will then return an associated array with this data in. |
public
|
|
public
|
Magic methods summary
Properties summary
protected
string
|
$release |
#
The version number of the extension. |
protected
string
|
$paramTable |
#
The table the parameters are stored in. |
protected
string
|
$extension |
#
The extension name. This should be set in the installer script. |
protected
array
|
$deleteFiles |
#
A list of files to be deleted |
protected
array
|
$deleteFolders |
#
A list of folders to be deleted |
protected
array
|
$cliScriptFiles |
#
A list of CLI script files to be copied to the cli directory |
protected
string
|
$minimumPhp |
#
Minimum PHP version required to install the extension |
protected
string
|
$minimumJoomla |
#
Minimum Joomla! version required to install the extension |
protected
boolean
|
$allowDowngrades |
#
Allow downgrades of your extension |