Class FOFUtilsInstallscript
A helper class which you can use to create component installation scripts
Package: FrameworkOnFramework\utils
Copyright: Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt
Located at fof/utils/installscript/installscript.php
Methods summary
public
boolean
|
#
preflight( string $type,
Joomla! pre-flight event. This runs before Joomla! installs or updates the component. This is our last chance to tell Joomla! if it should abort the installation. |
public
|
#
postflight( string $type,
Runs after install, update or discover_update. In other words, it executes after Joomla! has finished installing or updating your component. This is the last chance you've got to perform any additional installations, clean-up, database updates and similar housekeeping functions. |
public
|
|
protected
|
|
protected
|
#
renderPostInstallation( mixed $status, mixed $fofInstallationStatus, mixed $strapperInstallationStatus, mixed $parent )
Renders the message after installing or upgrading the component |
protected
|
#
renderPostUninstallation( mixed $status, mixed $parent )
Renders the message after uninstalling the component |
protected
|
|
protected
|
|
protected
|
#
installSubextensions(
Installs subextensions (modules, plugins) bundled with the main extension |
protected
|
#
uninstallSubextensions(
Uninstalls subextensions (modules, plugins) bundled with the main extension |
protected
|
|
protected
array
|
|
protected
array
|
|
protected
|
#
uninstallObsoleteSubextensions(
Uninstalls obsolete subextensions (modules, plugins) bundled with the main extension |
protected
|
#
addPostInstallationMessage( array $options )
Adds or updates a post-installation message (PIM) definition for Joomla! 3.2 or later. You can use this in your post-installation script using this code: |
protected
|
|
protected
|
Magic methods summary
Properties summary
protected
string
|
$componentName |
#
The component's name |
protected
string
|
$componentTitle |
#
The title of the component (printed on installation and uninstallation messages) |
protected
array
|
$installation_queue |
#
The list of extra modules and plugins to install on component installation / update and remove on component uninstallation. |
protected
array
|
$uninstallation_queue |
#
The list of obsolete extra modules and plugins to uninstall on component upgrade / installation. |
protected
array
|
$removeFilesFree |
#
Obsolete files and folders to remove from the free version only. This is used when you move a feature from the free version of your extension to its paid version. If you don't have such a distinction you can ignore this. |
protected
array
|
$removeFilesAllVersions |
#
Obsolete files and folders to remove from both paid and free releases. This is used when you refactor code and some files inevitably become obsolete and need to be removed. |
protected
array
|
$cliScriptFiles |
#
A list of scripts to be copied to the "cli" directory of the site |
protected
string
|
$cliSourcePath |
#
The path inside your package where cli scripts are stored |
protected
string
|
$fofSourcePath |
#
The path inside your package where FOF is stored |
protected
string
|
$strapperSourcePath |
#
The path inside your package where Akeeba Strapper is stored |
protected
string
|
$modulesSourcePath |
#
The path inside your package where extra modules are stored |
protected
string
|
$pluginsSourcePath |
#
The path inside your package where extra plugins are stored |
protected
boolean
|
$schemaXmlPathRelative |
#
Is the schemaXmlPath class variable a relative path? If set to true the schemaXmlPath variable contains a path relative to the component's back-end directory. If set to false the schemaXmlPath variable contains an absolute filesystem path. |
protected
string
|
$schemaXmlPath |
#
The path where the schema XML files are stored. Its contents depend on the schemaXmlPathRelative variable above true => schemaXmlPath contains a path relative to the component's back-end directory false => schemaXmlPath contains an absolute filesystem path |
protected
string
|
$minimumPHPVersion |
#
The minimum PHP version required to install this extension |
protected
string
|
$minimumJoomlaVersion |
#
The minimum Joomla! version required to install this extension |
protected
string
|
$maximumJoomlaVersion |
#
The maximum Joomla! version this extension can be installed on |
protected
boolean
|
$isPaid |
#
Is this the paid version of the extension? This only determines which files / extensions will be removed. |
protected
array
|
$postInstallationMessages |
#
Post-installation message definitions for Joomla! 3.2 or later. |