mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2327 201d5d3c-b55e-5fd7-737f-ddc643e51545
41 lines
1.2 KiB
PHP
41 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* @class moduleView
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief module 모듈의 view class
|
|
**/
|
|
|
|
class moduleView extends module {
|
|
|
|
/**
|
|
* @brief 초기화
|
|
**/
|
|
function init() {
|
|
// template path 지정
|
|
$this->setTemplatePath($this->module_path.'tpl');
|
|
}
|
|
|
|
/**
|
|
* @brief 스킨 정보 출력
|
|
**/
|
|
function dispModuleSkinInfo() {
|
|
$selected_module = Context::get('selected_module');
|
|
$skin = Context::get('skin');
|
|
|
|
// 모듈/스킨 정보를 구함
|
|
$module_path = sprintf("./modules/%s/", $selected_module);
|
|
if(!is_dir($module_path)) $this->stop("msg_invalid_request");
|
|
|
|
$skin_info_xml = sprintf("%sskins/%s/skin.xml", $module_path, $skin);
|
|
if(!file_exists($skin_info_xml)) $this->stop("msg_invalid_request");
|
|
|
|
$oModuleModel = &getModel('module');
|
|
$skin_info = $oModuleModel->loadSkinInfo($module_path, $skin);
|
|
Context::set('skin_info',$skin_info);
|
|
|
|
$this->setLayoutFile("popup_layout");
|
|
$this->setTemplateFile("skin_info");
|
|
}
|
|
|
|
}
|
|
?>
|