#19122530 Module Extend 지원

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7684 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2010-09-13 04:26:11 +00:00
parent 8595952528
commit f55fbeef9d
3 changed files with 96 additions and 3 deletions

View file

@ -78,6 +78,45 @@
return $output;
}
/**
* @brief module extend 추가
*
**/
function insertModuleExtend($parent_module, $extend_module, $type, $kind=''){
if($kind!='admin') $kind = '';
if(!in_array($type,array('model','controller','view')) || !in_array($kind,array('svc','admin'))) return;
$cache_file = './files/config/module_extend.php';
FileHandler::removeFile($cache_file);
$args->parent_module = $parent_module;
$args->extend_module = $extend_module;
$args->type = $type;
$args->kind = $kind;
$output = executeQuery('module.insertModuleExtend', $args);
return $output;
}
/**
* @brief module extend 삭제
*
**/
function deleteModuleExtend($parent_module, $extend_module, $type, $kind=''){
$cache_file = './files/config/module_extend.php';
FileHandler::deleteFile($cache_file);
$args->parent_module = $parent_module;
$args->extend_module = $extend_module;
$args->type = $type;
$args->kind = $kind;
$output = executeQuery('module.deleteModuleExtend', $args);
return $output;
}
/**
* @brief 특정 모듈의 설정 입력
* board, member등 특정 모듈의 global config 관리용