mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
module.updateModulePartConfig 함수 추가.
module.updateModuleConfig 함수와 기본 골자가 같은 module.updateModulePartConfig 함수를 새로 추가합니다.
This commit is contained in:
parent
b184a2b33e
commit
2f3c9d2a05
1 changed files with 14 additions and 0 deletions
|
|
@ -182,6 +182,20 @@ class moduleController extends module
|
|||
return $this->insertModuleConfig($module, $origin_config, $site_srl);
|
||||
}
|
||||
|
||||
function updateModulePartConfig($module, $module_srl, $config)
|
||||
{
|
||||
$oModuleModel = getModel('module');
|
||||
$origin_config = $oModuleModel->getModulePartConfig($module, $module_srl);
|
||||
|
||||
if(!$origin_config) $origin_config = new stdClass();
|
||||
foreach($config as $key => $val)
|
||||
{
|
||||
$origin_config->{$key} = $val;
|
||||
}
|
||||
|
||||
return $this->insertModulePartConfig($module, $module_srl, $origin_config);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Enter a specific set of modules
|
||||
* In order to manage global configurations of modules such as board, member and so on
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue