mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
moduleModel 및 moduleController에서 제공하던 각 모듈별 설정을 이용시 너무 많은 설정값들이 생길 경우 이를 serialize/ unserialize하는데 드는 부하가 커짐을 방지하기 위해서 module_config외에 module_part_config 테이블을 주고 module_srl 별 설정을 분산하도록 하여 쓸데없는 부하가 생기지 않도록 수정.
files/cache/module_info내에 있던 module_config 캐시 파일도 사용하지 않도록 변경 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4696 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cc7dd67ed2
commit
5934906056
41 changed files with 372 additions and 445 deletions
|
|
@ -41,14 +41,9 @@
|
|||
* @brief 설정 저장
|
||||
**/
|
||||
function procTrackbackAdminInsertConfig() {
|
||||
// 기존 설정을 가져옴
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('trackback');
|
||||
|
||||
$config->enable_trackback = Context::get('enable_trackback');
|
||||
if($config->enable_trackback != 'Y') $config->enable_trackback = 'N';
|
||||
|
||||
// module Controller 객체 생성하여 입력
|
||||
$oModuleController = &getController('module');
|
||||
$output = $oModuleController->insertModuleConfig('trackback',$config);
|
||||
return $output;
|
||||
|
|
@ -84,15 +79,10 @@
|
|||
* @brief Trackback 모듈별 설정 함수
|
||||
**/
|
||||
function setTrackbackModuleConfig($module_srl, $enable_trackback) {
|
||||
$oModuleModel = &getModel('module');
|
||||
$config->enable_trackback = $enable_trackback;
|
||||
|
||||
$oModuleController = &getController('module');
|
||||
|
||||
$trackback_config = $oModuleModel->getModuleConfig('trackback');
|
||||
$trackback_config->module_config[$module_srl]->module_srl = $module_srl;
|
||||
$trackback_config->module_config[$module_srl]->enable_trackback = $enable_trackback;
|
||||
|
||||
$oModuleController->insertModuleConfig('trackback', $trackback_config);
|
||||
|
||||
$oModuleController->insertModulePartConfig('trackback', $module_srl, $config);
|
||||
return new Object();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue