Class Legacy_ModuleUpdater
- Legacy_ModulePhasedUpgrader
- Legacy_ModuleUpdater
See:
Brief: The framework for the phased update.
Section: Description You can make your own custom-update-installer for your modules with the sub-class of this class. It's easy to make by many utility functions. You can write your sub-class as well as batch files. On Legacy System module, upgrade is called when users try to update. So you must implement your sub-class for also correct update. For example, the custom-update-install have to update module templates & block templates, because users expect that the module-update function does it. For the custom-update-install, Legacy_ModuleInstallUtils is good for you. Plus, this class has some usefull static methods for upgrade. Such functions have notes as "The utility method for the custom-update-installer". And, this class as the template-pattern has some methods you may override. These methods have note as "You may do custom".
Section: Convention Module Update function build the current-$xoopsModule from DB, and then sets it to this class through setCurrentXoopsModule(). Basically, you can access it by $this->_mCurrentXoopsModule. And, that function build the target-$xoopsModule from xoops_version, and then set it to this class through setTargetXoopsModule(). Also you can access it by $this->_mTargetXoopsModule.
Located at html/modules/legacy/admin/class/Legacy_Updater.class.php
Legacy_ModuleInstallUtils
Brief: The framework for the phased update.
Section: Description You can make your own custom-update-installer for your modules with the sub-class of this class. It's easy to make by many utility functions. You can write your sub-class as well as batch files. On Legacy System module, upgrade is called when users try to update. So you must implement your sub-class for also correct update. For example, the custom-update-install have to update module templates & block templates, because users expect that the module-update function does it. For the custom-update-install, Legacy_ModuleInstallUtils is good for you. Plus, this class has some usefull static methods for upgrade. Such functions have notes as "The utility method for the custom-update-installer". And, this class as the template-pattern has some methods you may override. These methods have note as "You may do custom".
Section: Convention Module Update function build the current-$xoopsModule from DB, and then sets it to this class through setCurrentXoopsModule(). Basically, you can access it by $this->_mCurrentXoopsModule. And, that function build the target-$xoopsModule from xoops_version, and then set it to this class through setTargetXoopsModule(). Also you can access it by $this->_mTargetXoopsModule.
Located at html/modules/legacy/admin/class/Legacy_Updater.class.php
public
|
|
public
|
|
public
|
|
public
|
|
public
|
public
array
|
$_mMilestone | array(
'106' => 'update106',
'200' => 'update200'
) |
#
This is an array of milestone version informations. Key is a version number. Value is a method name called by execute(). |
$_mCurrentVersion,
$_mCurrentXoopsModule,
$_mForceMode,
$_mTargetVersion,
$_mTargetXoopsModule,
$mLog
|