XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Static Public Member Functions | |
static & | createInstaller ($dirname) |
static & | createUpdater ($dirname) |
static & | createUninstaller ($dirname) |
static & | _createInstaller ($dirname, $mode, $defaultClassName) |
static | installSQLAutomatically (&$module, &$log) |
static | installAllOfModuleTemplates (&$module, &$log) |
static | installModuleTemplate ($module, $template, &$log) |
static | _uninstallAllOfModuleTemplates (&$module, $tplset, &$log) |
static | uninstallAllOfModuleTemplates (&$module, &$log) |
static | clearAllOfModuleTemplatesForUpdate (&$module, &$log) |
static | installAllOfBlocks (&$module, &$log) |
static | uninstallAllOfBlocks (&$module, &$log) |
static & | createBlockByInfo (&$module, $block, $func_num) |
static | installBlock (&$module, &$blockObj, &$block, &$log) |
static | uninstallBlock (&$block, &$log) |
static | installBlockTemplate (&$block, &$module, &$log) |
static | readTemplateFile ($dirname, $fileName, $isblock=false) |
static | installAllOfConfigs (&$module, &$log) |
static | installPreferenceByInfo (&$info, &$module, &$log) |
static & | getConfigInfosFromManifesto (&$module) |
static | uninstallAllOfConfigs (&$module, &$log) |
static | smartUpdateAllOfBlocks (&$module, &$log) |
static | smartUpdateAllOfPreferences (&$module, &$log) |
static | updateBlockTemplateByInfo (&$info, &$module, &$log) |
static | updateBlockByInfo (&$info, &$module, &$log) |
static | updatePreferenceByInfo (&$info, &$module, &$log) |
static | updatePreferenceOrderByInfo (&$info, &$module, &$log) |
static | installBlockByInfo (&$info, &$module, &$log) |
static | uninstallBlockByFuncNum ($func_num, &$module, &$log) |
static | _uninstallBlockTemplate (&$block, &$module, $tplset, &$log) |
static | uninstallBlockTemplate (&$block, &$module, &$log) |
static | clearBlockTemplateForUpdate (&$block, &$module, &$log) |
static | uninstallPreferenceByOrder ($order, &$module, &$log) |
static | DBquery ($query, &$module, $log) |
static | deleteAllOfNotifications (&$module, &$log) |
static | deleteAllOfComments (&$module, &$log) |
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.
Definition at line 73 of file ModuleInstallUtils.class.php.
|
static |
The generic factory for installers. This function is used by other utility functions.
string | $dirname | |
string | $mode | 'installer' 'updater' or 'uninstaller' |
string | $defaultClassName |
Definition at line 119 of file ModuleInstallUtils.class.php.
|
static |
Uninstalls all module templates $module specify. This function is useful 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 information about templates from the database.
This function depends on the specific spec of Legacy_RenderSystem, but this static function is needed by the 2nd installer of Legacy System.
XoopsModule | $module | |
$tplset | ||
Legacy_ModuleInstallLog | $log |
Definition at line 364 of file ModuleInstallUtils.class.php.
|
static |
Uninstalls the block template data specified by $block of $module.
XoopsBlock | $block | |
XoopsModule | $module | This object is must the module which has $block. |
string | $tplset | A name of the template set. If this is null, uninstalls all templates of any template-sets. |
$log |
Definition at line 1232 of file ModuleInstallUtils.class.php.
|
static |
Definition at line 394 of file ModuleInstallUtils.class.php.
|
static |
Removes a template data from only default group of some render-system.
$block | |
$module | |
$log |
Definition at line 1261 of file ModuleInstallUtils.class.php.
|
static |
Create XoopsBlock object by array that is defined in xoops_version, return it.
XoopsModule | $module | |
array | $block | |
$func_num |
Definition at line 504 of file ModuleInstallUtils.class.php.
|
static |
This is factory for the installer. The factory reads xoops_version without modulehandler, to prevent cache in modulehandler.
$dirname |
Definition at line 81 of file ModuleInstallUtils.class.php.
|
static |
This is factory for the uninstaller. The factory reads xoops_version without modulehandler, to prevent cache in modulehandler.
$dirname |
Definition at line 105 of file ModuleInstallUtils.class.php.
|
static |
This is factory for the updater. The factory reads xoops_version without modulehandler, to prevent cache in modulehandler.
$dirname |
Definition at line 93 of file ModuleInstallUtils.class.php.
|
static |
Executes SQL query as cube style.
$query | |
$module | |
$log |
Definition at line 1293 of file ModuleInstallUtils.class.php.
|
static |
Definition at line 1328 of file ModuleInstallUtils.class.php.
|
static |
Definition at line 1321 of file ModuleInstallUtils.class.php.
|
static |
Get & build config items from Manifesto by specific module object.
$module |
Definition at line 798 of file ModuleInstallUtils.class.php.
|
static |
Installs all blocks $module specify.
This function gets information about blocks from xoops_version.
XoopsModule | $module | |
Legacy_ModuleInstallLog | $log |
Definition at line 411 of file ModuleInstallUtils.class.php.
|
static |
Definition at line 733 of file ModuleInstallUtils.class.php.
|
static |
Installs all module templates $module specify. This function is useful for installer and updater. In the case of updater, you should uninstall all module templates before this function.
This function gets information about templates from xoops_version.
This function depends on the specific spec of Legacy_RenderSystem, but this static function is needed by the 2nd installer of Legacy System.
XoopsModule | $module | |
Legacy_ModuleInstallLog | $log |
Definition at line 276 of file ModuleInstallUtils.class.php.
|
static |
This function can receive both new and update.
XoopsModule | $module | |
XoopsBlock | $blockObj | |
array | $block | |
$log |
Definition at line 553 of file ModuleInstallUtils.class.php.
|
static |
Definition at line 1164 of file ModuleInstallUtils.class.php.
|
static |
Save the information of block's template specified and the source code of it to database.
$block | |
$module | |
$log |
Definition at line 652 of file ModuleInstallUtils.class.php.
|
static |
Inserts the specified template to DB.
This function depends on the specific spec of Legacy_RenderSystem, but this static function is needed by the 2nd installer of Legacy System.
XoopsModule | $module | |
string[][] | $template | |
Legacy_ModuleInstallLog | $log |
Definition at line 303 of file ModuleInstallUtils.class.php.
|
static |
Definition at line 762 of file ModuleInstallUtils.class.php.
|
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_ModuleInstallLog | $log |
Definition at line 169 of file ModuleInstallUtils.class.php.
|
static |
Read template file, return it.
$dirname | ||
$fileName | ||
bool | $isblock |
Definition at line 702 of file ModuleInstallUtils.class.php.
|
static |
Definition at line 909 of file ModuleInstallUtils.class.php.
|
static |
Definition at line 942 of file ModuleInstallUtils.class.php.
|
static |
Uninstalls all of blocks which $module specifies, and its permissions.
This function gets informations about templates from the database.
XoopsModule | $module | |
Legacy_ModuleInstallLog | $log |
Definition at line 481 of file ModuleInstallUtils.class.php.
|
static |
Delete all configs of $module.
XoopsModule | $module | |
$log |
Definition at line 891 of file ModuleInstallUtils.class.php.
|
static |
Definition at line 389 of file ModuleInstallUtils.class.php.
|
static |
Uninstalls a block which $block specifies. In the same time, deletes permissions for the block.
XoopsBlock | $block | |
Legacy_ModuleInstallLog | $log |
Definition at line 627 of file ModuleInstallUtils.class.php.
|
static |
$func_num | |
$module | |
$log |
Definition at line 1200 of file ModuleInstallUtils.class.php.
|
static |
Definition at line 1249 of file ModuleInstallUtils.class.php.
|
static |
Definition at line 1266 of file ModuleInstallUtils.class.php.
|
static |
Definition at line 1039 of file ModuleInstallUtils.class.php.
|
static |
Definition at line 1024 of file ModuleInstallUtils.class.php.
|
static |
Definition at line 1067 of file ModuleInstallUtils.class.php.
|
static |
Definition at line 1139 of file ModuleInstallUtils.class.php.