mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@788 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a0e9554964
commit
fdffc30fec
4 changed files with 34 additions and 0 deletions
|
|
@ -13,9 +13,16 @@
|
|||
* @brief 설치시 추가 작업이 필요할시 구현
|
||||
**/
|
||||
function moduleInstall() {
|
||||
// action forward에 등록 (관리자 모드에서 사용하기 위함)
|
||||
$oModuleController = &getController('module');
|
||||
$oModuleController->insertActionFoward('addon', 'dispAddonIndex');
|
||||
$oModuleController->insertActionFoward('addon', 'dispAddonInfo');
|
||||
$oModuleController->insertActionFoward('addon', 'procToggleActivateAddon');
|
||||
|
||||
// 몇가진 애드온을 기본으로 설치 상태로 지정
|
||||
$oAddonController = &getController('addon');
|
||||
$oAddonController->doActivate('spamfilter');
|
||||
$oAddonController->doActivate('message');
|
||||
return new Object();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -94,6 +94,20 @@
|
|||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief action forward 추가
|
||||
* action foward는 등록된 action이 요청된 모듈에 없을 경우 찾아서 포워딩을 하는 구조이다
|
||||
* 모듈의 설치시에 사용된다.
|
||||
**/
|
||||
function insertActionForward($module, $action) {
|
||||
$args->module = $module;
|
||||
$args->action = $action;
|
||||
|
||||
$oDB = &DB::getInstance();
|
||||
$output = $oDB->executeQuery('module.insertActionFoward', $args);
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 모듈의 기타 정보를 변경
|
||||
**/
|
||||
|
|
|
|||
9
modules/module/queries/insertActionFoward.xml
Normal file
9
modules/module/queries/insertActionFoward.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<query id="insertActionFoward" action="insert">
|
||||
<tables>
|
||||
<table name="action_foward" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="module" default="module" notnull="notnull" />
|
||||
<column name="action" default="action" notnull="notnull" />
|
||||
</columns>
|
||||
</query>
|
||||
4
modules/module/schemas/action_forward.xml
Normal file
4
modules/module/schemas/action_forward.xml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<table name="action_foward">
|
||||
<column name="module" type="varchar" size="80" notnull="notnull" unique="idx_foward" />
|
||||
<column name="action" type="varchar" size="255" notnull="notnull" unique="idx_foward"/>
|
||||
</table>
|
||||
Loading…
Add table
Add a link
Reference in a new issue