mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
67 lines
2.1 KiB
PHP
67 lines
2.1 KiB
PHP
<?php
|
|
/**
|
|
* @class pluginView
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief plugin 모듈의 View class
|
|
**/
|
|
|
|
class pluginView extends plugin {
|
|
|
|
/**
|
|
* @brief 초기화
|
|
**/
|
|
function init() {
|
|
$this->setTemplatePath($this->module_path.'tpl');
|
|
}
|
|
|
|
/**
|
|
* @brief 플러그인의 상세 정보(conf/info.xml)를 팝업 출력
|
|
**/
|
|
function dispPluginInfo() {
|
|
// 선택된 플러그인 정보를 구함
|
|
$oPluginModel = &getModel('plugin');
|
|
$plugin_info = $oPluginModel->getPluginInfo(Context::get('selected_plugin'));
|
|
Context::set('plugin_info', $plugin_info);
|
|
|
|
// 플러그인을 팝업으로 지정
|
|
$this->setLayoutFile('popup_layout');
|
|
|
|
// 템플릿 파일 지정
|
|
$this->setTemplateFile('plugin_detail_info');
|
|
}
|
|
|
|
/**
|
|
* @brief 플러그인의 코드 생성기
|
|
**/
|
|
function dispPluginGenerateCode() {
|
|
// 선택된 플러그인 정보를 구함
|
|
$oPluginModel = &getModel('plugin');
|
|
$plugin_info = $oPluginModel->getPluginInfo(Context::get('selected_plugin'));
|
|
Context::set('plugin_info', $plugin_info);
|
|
|
|
// mid 목록을 가져옴
|
|
$oModuleModel = &getModel('module');
|
|
$mid_list = $oModuleModel->getMidList();
|
|
Context::set('mid_list', $mid_list);
|
|
|
|
// 스킨의 정보를 구함
|
|
$skin_list = $oModuleModel->getSkins($plugin_info->path);
|
|
Context::set('skin_list', $skin_list);
|
|
|
|
// 플러그인을 팝업으로 지정
|
|
$this->setLayoutFile('popup_layout');
|
|
|
|
// 템플릿 파일 지정
|
|
$this->setTemplateFile('plugin_generate_code');
|
|
}
|
|
|
|
/**
|
|
* @brief 페이지 관리에서 사용될 코드 생성 팝업
|
|
**/
|
|
function dispPluginGenerateCodeInPage() {
|
|
$this->dispPluginGenerateCode();
|
|
$this->setTemplateFile('plugin_generate_code_in_page');
|
|
}
|
|
|
|
}
|
|
?>
|