mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1539 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
bc6e35d255
commit
86e8af5b3f
1 changed files with 30 additions and 2 deletions
|
|
@ -20,10 +20,11 @@
|
|||
* @brief ModuleHandler::getModuleObject($module_name, $type)을 쓰기 쉽게 함수로 선언
|
||||
* @param module_name 모듈이름
|
||||
* @param type disp, proc, controller, class
|
||||
* @param kind admin, null
|
||||
* @return module instance
|
||||
**/
|
||||
function &getModule($module_name, $type = 'view') {
|
||||
return ModuleHandler::getModuleInstance($module_name, $type);
|
||||
function &getModule($module_name, $type = 'view', $kind = '') {
|
||||
return ModuleHandler::getModuleInstance($module_name, $type, $kind);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -35,6 +36,15 @@
|
|||
return getModule($module_name, 'controller');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief module의 admin controller 객체 생성용
|
||||
* @param module_name 모듈이름
|
||||
* @return module admin controller instance
|
||||
**/
|
||||
function &getAdminController($module_name) {
|
||||
return getModule($module_name, 'controller','admin');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief module의 view 객체 생성용
|
||||
* @param module_name 모듈이름
|
||||
|
|
@ -44,6 +54,15 @@
|
|||
return getModule($module_name, 'view');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief module의 admin view 객체 생성용
|
||||
* @param module_name 모듈이름
|
||||
* @return module admin view instance
|
||||
**/
|
||||
function &getAdminView($module_name) {
|
||||
return getModule($module_name, 'view','admin');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief module의 model 객체 생성용
|
||||
* @param module_name 모듈이름
|
||||
|
|
@ -53,6 +72,15 @@
|
|||
return getModule($module_name, 'model');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief module의 admin model 객체 생성용
|
||||
* @param module_name 모듈이름
|
||||
* @return module admin model instance
|
||||
**/
|
||||
function &getAdminModel($module_name) {
|
||||
return getModule($module_name, 'model','admin');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief module의 상위 class 객체 생성용
|
||||
* @param module_name 모듈이름
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue