XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
Legacy_ModuleUninstallAction Class Reference

Module Uninstall function having possibility to extend by module developers. More...

Inheritance diagram for Legacy_ModuleUninstallAction:
Legacy_Action

Public Member Functions

 __construct ($flag)
 
 prepare (&$controller, &$xoopsUser)
 
_getInstaller ()
 
 _setupActionForm ()
 
 getDefaultView (&$controller, &$xoopsUser)
 
 execute (&$controller, &$xoopsUser)
 
 executeViewSuccess (&$controller, &$xoopsUser, &$renderer)
 
 executeViewInput (&$controller, &$xoopsUser, &$renderer)
 
 executeViewCancel (&$controller, &$xoopsUser, &$renderer)
 
- Public Member Functions inherited from Legacy_Action
 Legacy_Action ($adminFlag=false)
 
 hasPermission (&$controller, &$xoopsUser)
 
 executeViewError (&$controller, &$xoopsUser, &$render)
 
 executeViewIndex (&$controller, &$xoopsUser, &$render)
 
 executeViewPreview (&$controller, &$xoopsUser, &$render)
 

Data Fields

 $mUninstallSuccess = null
 
 $mUninstallFail = null
 
 $mXoopsModule = null
 
 $mInstaller = null
 
 $mActionForm = null
 
- Data Fields inherited from Legacy_Action
 $_mAdminFlag = false
 

Detailed Description

Module Uninstall function having possibility to extend by module developers.

The precondition is that the specified module has been installed && none-actived.

The custom-uninstaller

Module developers can use their own custom-uninstaller in this action. Unlike the module update function, the standard uninstaller in this action is perhaps no problems. But, duplicatable modules or some modules with the special framework may need the custom-uninstaller.

Convention

See Legacy_ModuleUninstallAction\_getInstaller().

  • $modversion['legacy_installer']['uninstaller']['class'] = {classname};
  • $modversion['legacy_installer']['uninstaller']['namespace'] = {namespace}; (Optional)
  • $modversion['legacy_installer']['uninstaller']['filepath'] = {filepath}; (Optional)

You must declare your sub-class of Legacy_ModuleUninstaller as {namespace}_{classname} in {filepath}. You must specify classname. Others are decided by the naming convention without your descriptions. Namespace is ucfirst(dirname). Filepath is "admin/class/{classname}.class.php".

For example, "news" module.

$modversion['legacy_installer']['uninstaller']['class'] = "Uninstaller";

You must declare News_Uninstaller in XOOPS_ROOT_PATH . "/modules/news/admin/class/Uninstallerr.class.php".

In the case where you specify the filepath, take care you describe the filepath with absolute path.

Install Process

  • Gets an instance of the uninstaller class through Legacy_ModuleUninstallAction\_getInstaller().
  • Sets the current XoopsModule to the instance.
  • Sets a value indicating whether an administrator hopes the force-mode, to the instance.
  • Calls executeUninstall().
See also
Legacy_ModuleUninstallAction\_getInstaller()
Legacy_ModuleUninstaller
Legacy_ModuleInstallUtils
Todo
These classes are good to abstract again.

Definition at line 67 of file ModuleUninstallAction.class.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( $flag)

Reimplemented from Legacy_Action.

Definition at line 99 of file ModuleUninstallAction.class.php.

Member Function Documentation

◆ _getInstaller()

& _getInstaller ( )

Definition at line 134 of file ModuleUninstallAction.class.php.

◆ _setupActionForm()

_setupActionForm ( )

Definition at line 141 of file ModuleUninstallAction.class.php.

◆ execute()

execute ( & $controller,
& $xoopsUser )

Reimplemented from Legacy_Action.

Definition at line 154 of file ModuleUninstallAction.class.php.

◆ executeViewCancel()

executeViewCancel ( & $controller,
& $xoopsUser,
& $renderer )

Reimplemented from Legacy_Action.

Definition at line 198 of file ModuleUninstallAction.class.php.

◆ executeViewInput()

executeViewInput ( & $controller,
& $xoopsUser,
& $renderer )

Reimplemented from Legacy_Action.

Definition at line 190 of file ModuleUninstallAction.class.php.

◆ executeViewSuccess()

executeViewSuccess ( & $controller,
& $xoopsUser,
& $renderer )

Reimplemented from Legacy_Action.

Definition at line 173 of file ModuleUninstallAction.class.php.

◆ getDefaultView()

getDefaultView ( & $controller,
& $xoopsUser )

Reimplemented from Legacy_Action.

Definition at line 147 of file ModuleUninstallAction.class.php.

◆ prepare()

prepare ( & $controller,
& $xoopsUser )

Reimplemented from Legacy_Action.

Definition at line 110 of file ModuleUninstallAction.class.php.

Field Documentation

◆ $mActionForm

$mActionForm = null

Definition at line 97 of file ModuleUninstallAction.class.php.

◆ $mInstaller

$mInstaller = null

Definition at line 91 of file ModuleUninstallAction.class.php.

◆ $mUninstallFail

$mUninstallFail = null

Definition at line 79 of file ModuleUninstallAction.class.php.

◆ $mUninstallSuccess

$mUninstallSuccess = null

Definition at line 73 of file ModuleUninstallAction.class.php.

◆ $mXoopsModule

$mXoopsModule = null

Definition at line 85 of file ModuleUninstallAction.class.php.


The documentation for this class was generated from the following file: