XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Module Install 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, &$render) | |
![]() | |
Legacy_Action ($adminFlag=false) | |
hasPermission (&$controller, &$xoopsUser) | |
executeViewError (&$controller, &$xoopsUser, &$render) | |
executeViewIndex (&$controller, &$xoopsUser, &$render) | |
executeViewPreview (&$controller, &$xoopsUser, &$render) | |
Data Fields | |
$mInstallSuccess = null | |
$mInstallFail = null | |
$mXoopsModule = null | |
$mInstaller = null | |
$mActionForm = null | |
![]() | |
$_mAdminFlag = false | |
Module Install function having possibility to extend by module developers.
The precondition is that the specified module has been not installed.
Module developers can use their own custom-installer in this action. Unlike the module update function, the standard installer in this action is perhaps no problems. But, duplicatable modules or some modules with the special framework may need the custom-installer.
See Legacy_ModuleInstallAction\_getInstaller().
You must declare your sub-class of Legacy_ModuleInstaller 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']['installer']['class'] = "Installer";
You must declare News_Installer in XOOPS_ROOT_PATH . "/modules/news/admin/class/Installerr.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 ModuleInstallAction.class.php.
__construct | ( | $flag | ) |
Reimplemented from Legacy_Action.
Definition at line 97 of file ModuleInstallAction.class.php.
& _getInstaller | ( | ) |
Definition at line 144 of file ModuleInstallAction.class.php.
_setupActionForm | ( | ) |
Definition at line 151 of file ModuleInstallAction.class.php.
execute | ( | & | $controller, |
& | $xoopsUser ) |
Reimplemented from Legacy_Action.
Definition at line 164 of file ModuleInstallAction.class.php.
executeViewCancel | ( | & | $controller, |
& | $xoopsUser, | ||
& | $render ) |
Reimplemented from Legacy_Action.
Definition at line 229 of file ModuleInstallAction.class.php.
executeViewInput | ( | & | $controller, |
& | $xoopsUser, | ||
& | $renderer ) |
$controller | |
$xoopsUser | |
$renderer |
Reimplemented from Legacy_Action.
Definition at line 221 of file ModuleInstallAction.class.php.
executeViewSuccess | ( | & | $controller, |
& | $xoopsUser, | ||
& | $renderer ) |
$controller | |
$xoopsUser | |
$renderer |
Reimplemented from Legacy_Action.
Definition at line 198 of file ModuleInstallAction.class.php.
getDefaultView | ( | & | $controller, |
& | $xoopsUser ) |
Reimplemented from Legacy_Action.
Definition at line 157 of file ModuleInstallAction.class.php.
prepare | ( | & | $controller, |
& | $xoopsUser ) |
Reimplemented from Legacy_Action.
Definition at line 108 of file ModuleInstallAction.class.php.
$mActionForm = null |
Definition at line 95 of file ModuleInstallAction.class.php.
$mInstaller = null |
Definition at line 89 of file ModuleInstallAction.class.php.
$mInstallFail = null |
Definition at line 77 of file ModuleInstallAction.class.php.
$mInstallSuccess = null |
Definition at line 72 of file ModuleInstallAction.class.php.
$mXoopsModule = null |
Definition at line 83 of file ModuleInstallAction.class.php.