|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /home/queenjbs/xe/modules/point/ |
Upload File : |
<?php
/**
* @class pointView
* @author zero (zero@nzeo.com)
* @brief point module의 view class
*
* POINT 2.0형식으로 문서 출력
*
**/
class pointView extends point {
/**
* @brief 초기화
**/
function init() {
}
/**
* @brief 서비스형 모듈의 추가 설정을 위한 부분
* point의 사용 형태에 대한 설정만 받음
**/
function triggerDispPointAdditionSetup(&$obj) {
$current_module_srl = Context::get('module_srl');
$current_module_srls = Context::get('module_srls');
if(!$current_module_srl && !$current_module_srls) {
$current_module_info = Context::get('current_module_info');
$current_module_srl = $current_module_info->module_srl;
if(!$current_module_srl) return new Object();
}
// 설정 정보 가져오기
$oModuleModel = &getModel('module');
if($current_module_srl) {
$module_config = $oModuleModel->getModulePartConfig('point', $current_module_srl);
if(!$module_config) {
$config = $oModuleModel->getModuleConfig('point');
$module_config['insert_document'] = $config->insert_document;
$module_config['insert_comment'] = $config->insert_comment;
$module_config['upload_file'] = $config->upload_file;
$module_config['download_file'] = $config->download_file;
$module_config['read_document'] = $config->read_document;
$module_config['voted'] = $config->voted;
$module_config['blamed'] = $config->blamed;
}
}
$module_config['module_srl'] = $current_module_srl;
$module_config['point_name'] = $config->point_name;
Context::set('module_config', $module_config);
// 템플릿 파일 지정
$oTemplate = &TemplateHandler::getInstance();
$tpl = $oTemplate->compile($this->module_path.'tpl', 'point_module_config');
$obj .= $tpl;
return new Object();
}
}
?>