git-svn-id: http://xe-core.googlecode.com/svn/trunk@414 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-14 06:55:42 +00:00
parent b1bdf645d5
commit ed284c98f2
8 changed files with 112 additions and 639 deletions

View file

@ -1,11 +1,11 @@
<?php
/**
* @class layoutView
* @class pluginView
* @author zero (zero@nzeo.com)
* @brief layout 모듈의 View class
* @brief plugin 모듈의 View class
**/
class layoutView extends layout {
class pluginView extends plugin {
/**
* @brief 초기화
@ -15,75 +15,33 @@
}
/**
* @brief 레이아웃 관리의 페이지
**/
function dispContent() {
$oLayoutModel = &getModel('layout');
$layout_list = $oLayoutModel->getLayoutList();
Context::set('layout_list', $layout_list);
$this->setTemplateFile('index');
}
/**
* @brief 레이아웃 등록 페이지
* 1차적으로 레이아웃만 선택한 DB 값을 넣고 상세 설정하는 단계를 거침
* @brief 플러그인의 상세 정보(conf/info.xml) 팝업 출력
**/
function dispInsertLayout() {
// 레이아웃 목록을 세팅
$oLayoutModel = &getModel('layout');
$layout_list = $oLayoutModel->getDownloadedLayoutList();
Context::set('layout_list', $layout_list);
$this->setTemplateFile('insert_layout');
}
/**
* @brief 레이아웃 세부 정보 입력
**/
function dispLayoutMenu() {
// 선택된 레이아웃의 정보르 구해서 세팅
$layout_srl = Context::get('layout_srl');
// 레이아웃의 정보를 가져옴
$oLayoutModel = &getModel('layout');
$layout_info = $oLayoutModel->getLayout($layout_srl);
// 등록된 레이아웃이 없으면 오류 표시
if(!$layout_info) return $this->dispContent();
Context::set('layout_info', $layout_info);
$this->setTemplateFile('layout_info');
}
/**
* @brief 레이아웃의 상세 정보(conf/info.xml) 팝업 출력
**/
function dispLayoutInfo() {
function dispPluginInfo() {
// 모듈 목록을 구해서
$oLayoutModel = &getModel('layout');
$layout_info = $oLayoutModel->getLayoutInfo(Context::get('selected_layout'));
Context::set('layout_info', $layout_info);
$oPluginModel = &getModel('plugin');
$plugin_info = $oPluginModel->getPluginInfo(Context::get('selected_plugin'));
Context::set('plugin_info', $plugin_info);
// 레이아웃을 팝업으로 지정
$this->setLayoutFile('popup_layout');
// 플러그인을 팝업으로 지정
$this->setPluginFile('popup_plugin');
// 템플릿 파일 지정
$this->setTemplateFile('layout_detail_info');
$this->setTemplateFile('plugin_detail_info');
}
/**
* @brief 레이아웃 목록을 보여줌
* @brief 플러그인 목록을 보여줌
**/
function dispDownloadedLayoutList() {
// 레이아웃 목록을 세팅
$oLayoutModel = &getModel('layout');
$layout_list = $oLayoutModel->getDownloadedLayoutList();
Context::set('layout_list', $layout_list);
function dispDownloadedPluginList() {
// 플러그인 목록을 세팅
$oPluginModel = &getModel('plugin');
$plugin_list = $oPluginModel->getDownloadedPluginList();
Context::set('plugin_list', $plugin_list);
$this->setTemplateFile('downloaded_layout_list');
$this->setTemplateFile('downloaded_plugin_list');
}