XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Module Uninstall function having possibility to extend by module developers. More...
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) | |
![]() | |
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 | |
![]() | |
$_mAdminFlag = false | |
Module Uninstall function having possibility to extend by module developers.
The precondition is that the specified module has been installed && none-actived.
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.
See Legacy_ModuleUninstallAction\_getInstaller().
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.
Definition at line 67 of file ModuleUninstallAction.class.php.
__construct | ( | $flag | ) |
Reimplemented from Legacy_Action.
Definition at line 99 of file ModuleUninstallAction.class.php.
& _getInstaller | ( | ) |
Definition at line 134 of file ModuleUninstallAction.class.php.
_setupActionForm | ( | ) |
Definition at line 141 of file ModuleUninstallAction.class.php.
execute | ( | & | $controller, |
& | $xoopsUser ) |
Reimplemented from Legacy_Action.
Definition at line 154 of file ModuleUninstallAction.class.php.
executeViewCancel | ( | & | $controller, |
& | $xoopsUser, | ||
& | $renderer ) |
Reimplemented from Legacy_Action.
Definition at line 198 of file ModuleUninstallAction.class.php.
executeViewInput | ( | & | $controller, |
& | $xoopsUser, | ||
& | $renderer ) |
Reimplemented from Legacy_Action.
Definition at line 190 of file ModuleUninstallAction.class.php.
executeViewSuccess | ( | & | $controller, |
& | $xoopsUser, | ||
& | $renderer ) |
Reimplemented from Legacy_Action.
Definition at line 173 of file ModuleUninstallAction.class.php.
getDefaultView | ( | & | $controller, |
& | $xoopsUser ) |
Reimplemented from Legacy_Action.
Definition at line 147 of file ModuleUninstallAction.class.php.
prepare | ( | & | $controller, |
& | $xoopsUser ) |
Reimplemented from Legacy_Action.
Definition at line 110 of file ModuleUninstallAction.class.php.
$mActionForm = null |
Definition at line 97 of file ModuleUninstallAction.class.php.
$mInstaller = null |
Definition at line 91 of file ModuleUninstallAction.class.php.
$mUninstallFail = null |
Definition at line 79 of file ModuleUninstallAction.class.php.
$mUninstallSuccess = null |
Definition at line 73 of file ModuleUninstallAction.class.php.
$mXoopsModule = null |
Definition at line 85 of file ModuleUninstallAction.class.php.