PHP Class Jelix\Installer\ModuleInstaller

Since: 1.2
Inheritance: extends AbstractInstaller, implements Jelix\Installer\InstallerInterface
Exibir arquivo Open project: jelix/jelix

Public Methods

Method Description
install ( ) should configure the module, install table into the database etc.
postInstall ( ) Redefine this method if you do some additionnal process after the installation of all other modules (dependents modules or the whole application)
postUninstall ( )
preInstall ( ) Called before the installation of all other modules (dependents modules or the whole application).
preUninstall ( ) Called before the uninstallation of all other modules (dependents modules or the whole application).
uninstall ( ) should remove static files. Probably remove some data if the user is agree etc.

Method Details

install() public method

. If an error occurs during the installation, you are responsible to cancel/revert all things the method did before the error
public install ( )

postInstall() public method

Redefine this method if you do some additionnal process after the installation of all other modules (dependents modules or the whole application)
public postInstall ( )

postUninstall() public method

public postUninstall ( )

preInstall() public method

Here, you should check if the module can be installed or not
public preInstall ( )

preUninstall() public method

Here, you should check if the module can be uninstalled or not
public preUninstall ( )

uninstall() public method

..
public uninstall ( )