Class Legacy_ModuleInstallUtils
This class is collection of static utility functions for module installation. These functions are useful for Legacy modules' system-fixed-installer and modules' custom-installer. All functions for the custom-installer are added notes as "FOR THE CUSTOM-ISNTALLER".
For more attentions, see base classes for the custom-installer.
public
&
|
#
createInstaller( $dirname )
This is factory for the installer. The factory reads xoops_version without modulehandler, to prevent cache in modulehandler. |
public
&
|
#
createUpdater( $dirname )
This is factory for the updater. The factory reads xoops_version without modulehandler, to prevent cache in modulehandler. |
public
&
|
#
createUninstaller( $dirname )
This is factory for the uninstaller. The factory reads xoops_version without modulehandler, to prevent cache in modulehandler. |
public
&
|
#
_createInstaller( string $dirname, string $mode, string $defaultClassName )
The generic factory for installers. This function is used by other utility functions. |
public
|
#
installSQLAutomatically(
Executes SQL file which xoops_version of $module specifies. This function is usefull for installers, but it's impossible to control for detail. |
public
|
#
installAllOfModuleTemplates(
Installs all of module templates $module specify. This function is usefull for installer and updater. In the case of updater, you should uninstall all of module templates before this function. |
public
boolean
|
#
installModuleTemplate(
Inserts the specified template to DB. |
public
|
#
_uninstallAllOfModuleTemplates(
Uninstalls all of module templates $module specify. This function is usefull for uninstaller and updater. In the case of update, you should call this function before installAllOfModuleTemplates(). In the case of uninstall, you must set 'false' to $defaultOnly. |
public
|
|
public
|
|
public
|
#
installAllOfBlocks(
Installs all of blocks $module specify. |
public
boolean
|
#
uninstallAllOfBlocks(
Uninstalls all of blocks which $module specifies, and its permissions. |
public
|
#
createBlockByInfo( $module & $module, $block $block, $func_num )
Create XoopsBlock object by array that is defined in xoops_version, return it. |
public
boolean
|
#
installBlock( $module & $module, $blockObj & $blockObj, $block & $block, & $log )
This function can receive both new and update. |
public
|
#
uninstallBlock(
Uninstalls a block which $block specifies. In the same time, deletes permissions for the block. |
public
boolean
|
#
installBlockTemplate( & $block, & $module, & $log )
Save the information of block's template specified and the source code of it to database. |
public
|
|
public
|
|
public
|
|
public
&
|
#
getConfigInfosFromManifesto( & $module )
Get & build config items from Manifesto by specific module object. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
_uninstallBlockTemplate(
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|