PHP 클래스 lib_fof30InstallerScript

파일 보기 프로젝트 열기: akeeba/fof

보호된 프로퍼티들

프로퍼티 타입 설명
$maximumJoomlaVersion string The maximum Joomla! version this extension can be installed on
$minimumJoomlaVersion string The minimum Joomla! version required to install this extension
$minimumPHPVersion string The minimum PHP version required to install this extension

공개 메소드들

메소드 설명
postflight ( string $type, JInstallerAdapterLibrary $parent ) 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.
preflight ( string $type, JInstaller $parent ) : boolean 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.
uninstall ( JInstallerAdapterLibrary $parent ) Runs on uninstallation

보호된 메소드들

메소드 설명
addDependency ( string $package, string $dependency ) Adds a package dependency to #__akeeba_common
amIAnUpdate ( JInstallerAdapterLibrary $parent ) : array Is this package an update to the currently installed FOF? If not (we're a downgrade) we will return false and prevent the installation from going on.
getDependencies ( string $package ) : array Get the dependencies for a package from the #__akeeba_common table
hasDependency ( string $package, string $dependency ) : boolean Do I have a dependency for a package in #__akeeba_common
loadFOF30 ( ) Loads FOF 3.0 if it's not already loaded
removeDependency ( string $package, string $dependency ) Removes a package dependency from #__akeeba_common
setDependencies ( string $package, array $dependencies ) Sets the dependencies for a package into the #__akeeba_common table

메소드 상세

addDependency() 보호된 메소드

Adds a package dependency to #__akeeba_common
protected addDependency ( string $package, string $dependency )
$package string The package
$dependency string The dependency to add

amIAnUpdate() 보호된 메소드

Is this package an update to the currently installed FOF? If not (we're a downgrade) we will return false and prevent the installation from going on.
protected amIAnUpdate ( JInstallerAdapterLibrary $parent ) : array
$parent JInstallerAdapterLibrary The parent object
리턴 array The installation status

getDependencies() 보호된 메소드

Get the dependencies for a package from the #__akeeba_common table
protected getDependencies ( string $package ) : array
$package string The package
리턴 array The dependencies

hasDependency() 보호된 메소드

Do I have a dependency for a package in #__akeeba_common
protected hasDependency ( string $package, string $dependency ) : boolean
$package string The package
$dependency string The dependency to check for
리턴 boolean

loadFOF30() 보호된 메소드

Loads FOF 3.0 if it's not already loaded
protected loadFOF30 ( )

postflight() 공개 메소드

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 postflight ( string $type, JInstallerAdapterLibrary $parent )
$type string install, update or discover_update
$parent JInstallerAdapterLibrary Parent object

preflight() 공개 메소드

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 preflight ( string $type, JInstaller $parent ) : boolean
$type string Installation type (install, update, discover_install)
$parent JInstaller Parent object
리턴 boolean True to let the installation proceed, false to halt the installation

removeDependency() 보호된 메소드

Removes a package dependency from #__akeeba_common
protected removeDependency ( string $package, string $dependency )
$package string The package
$dependency string The dependency to remove

setDependencies() 보호된 메소드

Sets the dependencies for a package into the #__akeeba_common table
protected setDependencies ( string $package, array $dependencies )
$package string The package
$dependencies array The dependencies list

uninstall() 공개 메소드

Runs on uninstallation
public uninstall ( JInstallerAdapterLibrary $parent )
$parent JInstallerAdapterLibrary The parent object

프로퍼티 상세

$maximumJoomlaVersion 보호되어 있는 프로퍼티

The maximum Joomla! version this extension can be installed on
protected string $maximumJoomlaVersion
리턴 string

$minimumJoomlaVersion 보호되어 있는 프로퍼티

The minimum Joomla! version required to install this extension
protected string $minimumJoomlaVersion
리턴 string

$minimumPHPVersion 보호되어 있는 프로퍼티

The minimum PHP version required to install this extension
protected string $minimumPHPVersion
리턴 string