Public Member Functions | |
& | createBlockByInfo (&$module, $block, $func_num) |
installBlock (&$module, &$blockObj, &$block, &$log) | |
uninstallBlock (&$block, &$log) | |
installAllOfBlockTemplates (&$module, &$block) | |
readTemplateFile ($dirname, $fileName, $isblock=false) | |
& | getConfigInfosFromManifesto (&$module) |
uninstallAllOfConfigs (&$module, &$log) | |
DBquery ($query, &$module, $log) | |
Static Public Member Functions | |
installSQLAutomatically (&$module, &$log) | |
installAllOfModuleTemplates (&$module, &$log) | |
installModuleTemplate ($module, $template, &$log) | |
uninstallAllOfModuleTemplates (&$module, &$log, $defaultOnly=true) | |
installAllOfBlocks (&$module, &$log) | |
uninstallAllOfBlocks (&$module, &$log) |
For more attentions, see base classes for the custom-installer.
Legacy_ModuleInstallUtils::installSQLAutomatically | ( | &$ | module, | |
&$ | log | |||
) | [static] |
Executes SQL file which xoops_version of $module specifies. This function is usefull for installers, but it's impossible to control for detail.
XoopsModule | $module | |
Legacy_ModuleUtilsSimpleLog | $log |
Legacy_ModuleInstallUtils::installAllOfModuleTemplates | ( | &$ | module, | |
&$ | log | |||
) | [static] |
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.
This function gets informations about templates from xoops_version.
XoopsModule | $module | |
Legacy_ModuleUtilsSimpleLog | $log |
Legacy_ModuleInstallUtils::installModuleTemplate | ( | $ | module, | |
$ | template, | |||
&$ | log | |||
) | [static] |
Inserts the specified template to DB.
XoopsModule | $module | |
string[][] | $template | |
Legacy_ModuleUtilsSimpleLog | $log |
Legacy_ModuleInstallUtils::uninstallAllOfModuleTemplates | ( | &$ | module, | |
&$ | log, | |||
$ | defaultOnly = true | |||
) | [static] |
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.
This function gets informations about templates from the database.
XoopsModule | $module | |
Legacy_ModuleUtilsSimpleLog | $log | |
bool | $defaultOnly Indicates whether this function deletes templates from all of tplsets. |
Legacy_ModuleInstallUtils::installAllOfBlocks | ( | &$ | module, | |
&$ | log | |||
) | [static] |
Installs all of blocks $module specify.
This function gets informations about blocks from xoops_version.
XoopsModule | $module | |
Legacy_ModuleUtilsSimpleLog | $log |
Legacy_ModuleInstallUtils::uninstallAllOfBlocks | ( | &$ | module, | |
&$ | log | |||
) | [static] |
Uninstalls all of blocks which $module specifies, and its permissions.
This function gets informations about templates from the database.
XoopsModule | $module | |
Legacy_ModuleUtilsSimpleLog | $log |
& Legacy_ModuleInstallUtils::createBlockByInfo | ( | &$ | module, | |
$ | block, | |||
$ | func_num | |||
) |
Create XoopsBlock object by array that is defined in xoops_version, return it.
$module | XoopsModule | |
$block | array |
Legacy_ModuleInstallUtils::installBlock | ( | &$ | module, | |
&$ | blockObj, | |||
&$ | block, | |||
&$ | log | |||
) |
This function can receive both new and update.
$module | XoopsModule | |
$blockObj | XoopsBlock | |
$block | array |
Legacy_ModuleInstallUtils::uninstallBlock | ( | &$ | block, | |
&$ | log | |||
) |
Uninstalls a block which $block specifies. In the same time, deletes permissions for the block.
XoopsBlock | $block | |
Legacy_ModuleUtilsSimpleLog | $log |
Legacy_ModuleInstallUtils::installAllOfBlockTemplates | ( | &$ | module, | |
&$ | block | |||
) |
Save the information of block's template specified and the source code of it to database.
Legacy_ModuleInstallUtils::readTemplateFile | ( | $ | dirname, | |
$ | fileName, | |||
$ | isblock = false | |||
) |
Read template file, return it.
& Legacy_ModuleInstallUtils::getConfigInfosFromManifesto | ( | &$ | module | ) |
Get & build config items from Manifesto by specific module object.
Legacy_ModuleInstallUtils::uninstallAllOfConfigs | ( | &$ | module, | |
&$ | log | |||
) |
Delete all configs of $module.
$module | XoopsModule |
Legacy_ModuleInstallUtils::DBquery | ( | $ | query, | |
&$ | module, | |||
$ | log | |||
) |
Executes SQL query as cube style.