mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
insert config function
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8958 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
58831579e1
commit
2e2b5ff74e
2 changed files with 21 additions and 0 deletions
|
|
@ -118,6 +118,21 @@
|
|||
return $output;
|
||||
}
|
||||
|
||||
|
||||
function updateModuleConfig($module, $config, $site_srl = 0){
|
||||
$args->module = $module;
|
||||
$args->site_srl = $site_srl;
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
$origin_config = $oModuleModel->getModuleConfig($module, $site_srl);
|
||||
|
||||
foreach($config as $key => $val){
|
||||
$origin_config->{$key} = $val;
|
||||
}
|
||||
|
||||
return $this->insertModuleConfig($module, $origin_config, $site_srl);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Enter a specific set of modules
|
||||
* In order to manage global configurations of modules such as board, member and so on
|
||||
|
|
|
|||
|
|
@ -1371,6 +1371,12 @@
|
|||
* @param module, act
|
||||
**/
|
||||
function getValidatorFilePath($module, $ruleset) {
|
||||
// load dynamic ruleset xml file
|
||||
if (strpos($ruleset, '@') !== false){
|
||||
$rulsetFile = str_replace('@', '', $ruleset);
|
||||
$xml_file = sprintf('./files/ruleset/%s.xml', $rulsetFile);
|
||||
return FileHandler::getRealPath($xml_file);
|
||||
}
|
||||
// Get a path of the requested module. Return if not exists.
|
||||
$class_path = ModuleHandler::getModulePath($module);
|
||||
if(!$class_path) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue