RdbAdmin Module

ModuleInstaller

Module installer interface.

Tags
since
0.1

Table of Contents

Methods

__construct()  : mixed
The class constructor.
install()  : mixed
Install a module.
uninstall()  : mixed
Uninstall a module.
update()  : mixed
Update a module.

Methods

install()

Install a module.

public install() : mixed

This method will be call on install a module.
If your module contain some thing to work on install such as create table in database, you can use that command here.
If your module has nothing to work on install, you can create this method and leave it empty.

Any installation script here if they failed, it should throw the errors to make a notice that installation is failure.

Tags
throws
Exception

Throw the exception error in something failed.

uninstall()

Uninstall a module.

public uninstall() : mixed

This method will be called on uninstall and it will be delete the module's files.

This method will be call on uninstall module.
If your module contain some thing to work on uninstall such as remove table in database, you can use that command here.
If your module has nothing to work on uninstall, you can create this method and leave it empty.

Any uninstallation script here if they failed, it should throw the errors to make a notice that uninstallation is failure.

Tags
throws
Exception

Throw the exception error in something failed.

update()

Update a module.

public update() : mixed

This method will be call on update a module.
If your module contain something to work on update such as migration, update the database, you can use that command here.
If your module has nothing to work on update, you can create this method and leave it empty.

Any update script here if they failed, it should throw the errors to make a notice that update is failure.

Tags
throws
Exception

Throw the exception error in something failed.


        
On this page

Search results