Class Legacy_ModuleUpdateAction
- Legacy_Action
- Legacy_ModuleUpdateAction
See:
See:
See:
Brief: Module Update function having possibility to extend by module developers. The precondition is that the specified module has been installed.
Section: cupdate The custom-update-installer Module developers can use their own custom-update-installer in this action. This function uses Legacy_ModulePhasedUpgrader to update moudles. But, this class can't smart update modules correctly & automatically, because the module updat function bases on XOOPS2 JP spec. We have no rules to declare modules strictly. To solve it, module developers should use the custom-update-installer, because module developers know detail changelog of their module.
Subsection: convention Convention See Legacy_ModuleUpdateAction::_getInstaller(). \li $modversion['legacy_installer']['updater']['class'] = {classname}; \li $modversion['legacy_installer']['updater']['namespace'] = {namespace}; (Optional) \li $modversion['legacy_installer']['updater']['filepath'] = {filepath}; (Optional) You must declare your sub-class of Legacy_ModulePhasedUpgrader 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']['updater']['class'] = "Updater"; You must declare News_Updater in XOOPS_ROOT_PATH . "/modules/news/admin/class/Updater.class.php". In the case where you specify the filepath, take care you describe the filepath with absolute path.
Subsection: process Install Process \li Gets a instance of the update installer class through Legacy_ModuleUpdateAction::_getInstaller(). \li Sets the current XoopsModule to the instance. \li Builds the target XoopsModule from xoops_version, and sets it to the instance. \li Sets a value indicating whether an administrator hopes the force-mode, to the instance. \li Calls executeUpgrade().
Located at html/modules/legacy/admin/actions/ModuleUpdateAction.class.php
Legacy_ModuleUpdateAction::_getInstaller()
See:
Legacy_ModulePhasedUpgrader
See:
Legacy_ModuleInstallUtils
Brief: Module Update function having possibility to extend by module developers. The precondition is that the specified module has been installed.
Section: cupdate The custom-update-installer Module developers can use their own custom-update-installer in this action. This function uses Legacy_ModulePhasedUpgrader to update moudles. But, this class can't smart update modules correctly & automatically, because the module updat function bases on XOOPS2 JP spec. We have no rules to declare modules strictly. To solve it, module developers should use the custom-update-installer, because module developers know detail changelog of their module.
Subsection: convention Convention See Legacy_ModuleUpdateAction::_getInstaller(). \li $modversion['legacy_installer']['updater']['class'] = {classname}; \li $modversion['legacy_installer']['updater']['namespace'] = {namespace}; (Optional) \li $modversion['legacy_installer']['updater']['filepath'] = {filepath}; (Optional) You must declare your sub-class of Legacy_ModulePhasedUpgrader 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']['updater']['class'] = "Updater"; You must declare News_Updater in XOOPS_ROOT_PATH . "/modules/news/admin/class/Updater.class.php". In the case where you specify the filepath, take care you describe the filepath with absolute path.
Subsection: process Install Process \li Gets a instance of the update installer class through Legacy_ModuleUpdateAction::_getInstaller(). \li Sets the current XoopsModule to the instance. \li Builds the target XoopsModule from xoops_version, and sets it to the instance. \li Sets a value indicating whether an administrator hopes the force-mode, to the instance. \li Calls executeUpgrade().
Located at html/modules/legacy/admin/actions/ModuleUpdateAction.class.php
public
|
|
public
|
|
public
|
|
public
&
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
Legacy_Action(),
executeViewError(),
executeViewIndex(),
executeViewPreview(),
hasPermission()
|
public
|
$mUpdateSuccess | null |
|
public
|
$mUpdateFail | null |
|
public
|
$mXoopsModule | null |
|
public
|
$mInstaller | null |
$_mAdminFlag
|