포인트 모듈, 포인트 활성화 애드온, 포인트 레벨 아이콘 표시 애드온 추가

git-svn-id: http://xe-core.googlecode.com/svn/trunk@2032 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-07-26 11:15:51 +00:00
parent d3c3350fe9
commit eb9bd1d30b
64 changed files with 1242 additions and 0 deletions

View file

@ -0,0 +1,59 @@
<?php
/**
* @class pointAdminView
* @author zero (zero@nzeo.com)
* @brief point모듈의 admin view class
**/
class pointAdminView extends point {
/**
* @brief 초기화
**/
function init() {
// 설정 정보 가져오기
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('point');
Context::set('config', $config);
// 설정 변수 지정
Context::set('config', $config);
// template path지정
$this->setTemplatePath($this->module_path.'tpl');
}
/**
* @brief 기본 설정
**/
function dispPointAdminConfig() {
// 레벨 아이콘 목록 구함
$level_icon_list = FileHandler::readDir("./modules/point/icons");
Context::set('level_icon_list', $level_icon_list);
// 템플릿 지정
$this->setTemplateFile('config');
}
/**
* @brief 모듈별 점수 지정
**/
function dispPointAdminModuleConfig() {
// mid 목록 가져오기
$oModuleModel = &getModel('module');
$mid_list = $oModuleModel->getMidList();
Context::set('mid_list', $mid_list);
// 템플릿 지정
$this->setTemplateFile('module_config');
}
/**
* @brief 기능별 act 설정
**/
function dispPointAdminActConfig() {
// 템플릿 지정
$this->setTemplateFile('action_config');
}
}
?>