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@818 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8a4280e93a
commit
cfae38adb5
13 changed files with 25 additions and 18 deletions
|
|
@ -1,11 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<module version="0.1">
|
||||
<title xml:lang="ko">플러그인 관리</title>
|
||||
<title xml:lang="en">plugin management</title>
|
||||
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">제로</name>
|
||||
<name xml:lang="en">zero</name>
|
||||
<description xml:lang="ko">플러그인 관리 모듈</description>
|
||||
<description xml:lang="en">plugin management</description>
|
||||
</author>
|
||||
</module>
|
||||
|
|
|
|||
|
|
@ -1,12 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<module>
|
||||
<actions>
|
||||
<action name="dispDownloadedPluginList" type="view" standalone="true" admin_index="true" />
|
||||
<action name="dispPluginInfo" type="view" standalone="true" />
|
||||
<action name="dispGenerateCode" type="view" standalone="true" />
|
||||
<action name="dispGenerateCodeInPage" type="view" standalone="true" />
|
||||
<action name="dispPluginGenerateCode" type="view" standalone="true" />
|
||||
<action name="dispPluginGenerateCodeInPage" type="view" standalone="true" />
|
||||
|
||||
<action name="procGenerateCode" type="controller" standalone="true" />
|
||||
<action name="procGetColorsetList" type="controller" standalone="true" />
|
||||
<action name="dispPluginAdminDownloadedList" type="view" standalone="true" admin_index="true" />
|
||||
|
||||
<action name="procPluginGenerateCode" type="controller" standalone="true" />
|
||||
<action name="procPluginGetColorsetList" type="controller" standalone="true" />
|
||||
</actions>
|
||||
</module>
|
||||
|
|
|
|||
|
|
@ -11,6 +11,15 @@
|
|||
* @brief 설치시 추가 작업이 필요할시 구현
|
||||
**/
|
||||
function moduleInstall() {
|
||||
// action forward에 등록 (관리자 모드에서 사용하기 위함)
|
||||
$oModuleController = &getController('module');
|
||||
$oModuleController->insertActionFoward('plugin', 'view', 'dispPluginInfo');
|
||||
$oModuleController->insertActionFoward('plugin', 'view', 'dispPluginGenerateCode');
|
||||
$oModuleController->insertActionFoward('plugin', 'view', 'dispPluginGenerateCodePage');
|
||||
$oModuleController->insertActionFoward('plugin', 'view', 'dispPluginAdminDownloadedList');
|
||||
$oModuleController->insertActionFoward('plugin', 'controller', 'procPluginGenerateCode');
|
||||
$oModuleController->insertActionFoward('plugin', 'controller', 'procPluginGetColorsetList');
|
||||
|
||||
// plugin 에서 사용할 cache디렉토리 생성
|
||||
FileHandler::makeDir('./files/cache/plugin');
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* @brief 플러그인의 생성된 코드를 return
|
||||
**/
|
||||
function procGenerateCode() {
|
||||
function procPluginGenerateCode() {
|
||||
// 변수 정리
|
||||
$vars = Context::getRequestVars();
|
||||
$plugin = $vars->selected_plugin;
|
||||
|
|
@ -43,7 +43,7 @@
|
|||
/**
|
||||
* @brief 선택된 플러그인 - 스킨의 컬러셋을 return
|
||||
**/
|
||||
function procGetColorsetList() {
|
||||
function procPluginGetColorsetList() {
|
||||
$plugin = Context::get('selected_plugin');
|
||||
$skin = Context::get('skin');
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
/**
|
||||
* @brief 플러그인 목록을 보여줌
|
||||
**/
|
||||
function dispDownloadedPluginList() {
|
||||
function dispPluginAdminDownloadedList() {
|
||||
// 플러그인 목록을 세팅
|
||||
$oPluginModel = &getModel('plugin');
|
||||
$plugin_list = $oPluginModel->getDownloadedPluginList();
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
/**
|
||||
* @brief 플러그인의 코드 생성기
|
||||
**/
|
||||
function dispGenerateCode() {
|
||||
function dispPluginGenerateCode() {
|
||||
// 선택된 플러그인 정보를 구함
|
||||
$oPluginModel = &getModel('plugin');
|
||||
$plugin_info = $oPluginModel->getPluginInfo(Context::get('selected_plugin'));
|
||||
|
|
@ -70,7 +70,7 @@
|
|||
/**
|
||||
* @brief 페이지 관리에서 사용될 코드 생성 팝업
|
||||
**/
|
||||
function dispGenerateCodeInPage() {
|
||||
function dispPluginGenerateCodeInPage() {
|
||||
$this->dispGenerateCode();
|
||||
$this->setTemplateFile('plugin_generate_code_in_page');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue