diff --git a/modules/addon/addon.class.php b/modules/addon/addon.class.php index 87f62b200..c6174a744 100644 --- a/modules/addon/addon.class.php +++ b/modules/addon/addon.class.php @@ -15,9 +15,9 @@ function moduleInstall() { // action forward에 등록 (관리자 모드에서 사용하기 위함) $oModuleController = &getController('module'); - $oModuleController->insertActionFoward('addon', 'dispAddonIndex'); - $oModuleController->insertActionFoward('addon', 'dispAddonInfo'); - $oModuleController->insertActionFoward('addon', 'procToggleActivateAddon'); + $oModuleController->insertActionFoward('addon', 'view', 'dispAddonIndex'); + $oModuleController->insertActionFoward('addon', 'view', 'dispAddonInfo'); + $oModuleController->insertActionFoward('addon', 'controller', 'procToggleActivateAddon'); // 몇가진 애드온을 기본으로 설치 상태로 지정 $oAddonController = &getController('addon'); diff --git a/modules/addon/addon.controller.php b/modules/addon/addon.controller.php index 3d33b1b17..783e2ac9b 100644 --- a/modules/addon/addon.controller.php +++ b/modules/addon/addon.controller.php @@ -16,7 +16,7 @@ /** * @brief 애드온의 활성/비활성 체인지 **/ - function procToggleActivateAddon() { + function procAddonAdminToggleActivate() { $oAddonModel = &getModel('addon'); // addon값을 받아옴 diff --git a/modules/addon/addon.view.php b/modules/addon/addon.view.php index 8233a7691..8d380f13c 100644 --- a/modules/addon/addon.view.php +++ b/modules/addon/addon.view.php @@ -11,44 +11,41 @@ * @brief 초기화 **/ function init() { - $this->setTemplatePath($this->module_path.'tpl.admin'); } /** - * @brief 애드온 관리 메인 페이지 + * @brief 애드온 관리 메인 페이지 (목록 보여줌) **/ - function dispIndex() { - $this->dispAddonList(); - } - - /** - * @brief 애드온의 상세 정보(conf/info.xml)를 팝업 출력 - **/ - function dispAddonInfo() { - // 모듈 목록을 구해서 - $oAddonModel = &getModel('addon'); - $addon_info = $oAddonModel->getAddonInfoXml(Context::get('selected_addon')); - Context::set('addon_info', $addon_info); - - // 레이아웃을 팝업으로 지정 - $this->setLayoutFile('popup_layout'); - - // 템플릿 파일 지정 - $this->setTemplateFile('addon_info'); - } - - /** - * @brief 애드온 목록을 보여줌 - **/ - function dispAddonList() { + function dispAddonAdminIndex() { // 애드온 목록을 세팅 $oAddonModel = &getModel('addon'); $addon_list = $oAddonModel->getAddonList(); Context::set('addon_list', $addon_list); + // 템플릿 패스 및 파일을 지정 + $this->setTemplatePath($this->module_path.'tpl.admin'); $this->setTemplateFile('addon_list'); } + /** + * @brief 애드온의 상세 정보(conf/info.xml)를 팝업 출력 + **/ + function dispAddonAdminInfo() { + // 요청된 애드온을 구함 + $selected_addon = Context::get('selected_addon'); + + // 요청된 애드온의 정보를 구함 + $oAddonModel = &getModel('addon'); + $addon_info = $oAddonModel->getAddonInfoXml($selected_addon); + Context::set('addon_info', $addon_info); + + // 레이아웃을 팝업으로 지정 + $this->setLayoutFile('popup_layout'); + + // 템플릿 패스 및 파일을 지정 + $this->setTemplatePath($this->module_path.'tpl.admin'); + $this->setTemplateFile('addon_info'); + } } ?> diff --git a/modules/addon/conf/info.xml b/modules/addon/conf/info.xml index dd61ab1ed..386928f45 100644 --- a/modules/addon/conf/info.xml +++ b/modules/addon/conf/info.xml @@ -1,11 +1,8 @@ 애드온 관리 - addon management 제로 - zero - 애드온 관리 모듈 - addon management + 애드온을 등록하거나 사용/미사용을 설정하는 애드온 관리 모듈입니다. diff --git a/modules/addon/conf/module.xml b/modules/addon/conf/module.xml index d68131122..29b95edb6 100644 --- a/modules/addon/conf/module.xml +++ b/modules/addon/conf/module.xml @@ -1,8 +1,8 @@ - - - + + + diff --git a/modules/module/module.controller.php b/modules/module/module.controller.php index 2a205018f..0e9ff5361 100644 --- a/modules/module/module.controller.php +++ b/modules/module/module.controller.php @@ -99,8 +99,9 @@ * action foward는 등록된 action이 요청된 모듈에 없을 경우 찾아서 포워딩을 하는 구조이다 * 모듈의 설치시에 사용된다. **/ - function insertActionForward($module, $action) { + function insertActionForward($module, $type, $action) { $args->module = $module; + $args->type = $type; $args->action = $action; $oDB = &DB::getInstance();