mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 09:14:48 +09:00
english comments added
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0_english@8278 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
693e215bc1
commit
4d272994dd
219 changed files with 6407 additions and 8705 deletions
|
|
@ -2,25 +2,24 @@
|
|||
/**
|
||||
* @class messageAdminController
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief message module의 admin controller class
|
||||
* @brief admin controller class of message module
|
||||
**/
|
||||
|
||||
class messageAdminController extends message {
|
||||
|
||||
/**
|
||||
* @brief 초기화
|
||||
* @brief Initialization
|
||||
**/
|
||||
function init() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 설정
|
||||
* @brief Configuration
|
||||
**/
|
||||
function procMessageAdminInsertConfig() {
|
||||
// 기본 정보를 받음
|
||||
// Get information
|
||||
$args->skin = Context::get('skin');
|
||||
|
||||
// module Controller 객체 생성하여 입력
|
||||
// Create a module Controller object
|
||||
$oModuleController = &getController('module');
|
||||
$output = $oModuleController->insertModuleConfig('message',$args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
|
|||
|
|
@ -2,31 +2,29 @@
|
|||
/**
|
||||
* @class messageAdminView
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief message모듈의 admin view class
|
||||
* @brief admin view class of the message module
|
||||
**/
|
||||
|
||||
class messageAdminView extends message {
|
||||
|
||||
/**
|
||||
* @brief 초기화
|
||||
* @brief Initialization
|
||||
**/
|
||||
function init() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 설정
|
||||
* @brief Configuration
|
||||
**/
|
||||
function dispMessageAdminConfig() {
|
||||
// 스킨 목록을 구해옴
|
||||
// Get a list of skins(themes)
|
||||
$oModuleModel = &getModel('module');
|
||||
$skin_list = $oModuleModel->getskins($this->module_path);
|
||||
Context::set('skin_list', $skin_list);
|
||||
|
||||
// 설정 정보를 받아옴 (module model 객체를 이용)
|
||||
// Get configurations (using module model object)
|
||||
$config = $oModuleModel->getModuleConfig('message');
|
||||
Context::set('config',$config);
|
||||
|
||||
// 템플릿 파일 지정
|
||||
// Set a template file
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
$this->setTemplateFile('config');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,34 +2,34 @@
|
|||
/**
|
||||
* @class message
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief message모듈의 high class
|
||||
* @brief high class of message module
|
||||
**/
|
||||
|
||||
class message extends ModuleObject {
|
||||
|
||||
/**
|
||||
* @brief 설치시 추가 작업이 필요할시 구현
|
||||
* @brief Implement if additional tasks are necessary when installing
|
||||
**/
|
||||
function moduleInstall() {
|
||||
return new Object();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 설치가 이상이 없는지 체크하는 method
|
||||
* @brief a method to check if successfully installed
|
||||
**/
|
||||
function checkUpdate() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 업데이트 실행
|
||||
* @brief Execute update
|
||||
**/
|
||||
function moduleUpdate() {
|
||||
return new Object();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 캐시 파일 재생성
|
||||
* @brief Re-generate the cache file
|
||||
**/
|
||||
function recompileCache() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,29 +4,26 @@
|
|||
class messageMobile extends messageView {
|
||||
|
||||
/**
|
||||
* @brief 초기화
|
||||
* @brief Initialization
|
||||
**/
|
||||
function init() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 메세지 출력
|
||||
* @brief Message output
|
||||
**/
|
||||
function dispMessage() {
|
||||
// 설정 정보를 받아옴 (module model 객체를 이용)
|
||||
// Get configurations (using module model object)
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('message');
|
||||
if(!$config->skin) $config->skin = 'default';
|
||||
|
||||
// 템플릿 경로를 지정
|
||||
// Set the template path
|
||||
$template_path = sprintf('%sm.skins/%s', $this->module_path, $config->skin);
|
||||
|
||||
// 회원 관리 정보를 받음
|
||||
// Get the member configuration
|
||||
$oModuleModel = &getModel('module');
|
||||
$member_config = $oModuleModel->getModuleConfig('member');
|
||||
Context::set('member_config', $member_config);
|
||||
|
||||
// ssl 사용시 현재 https접속상태인지에 대한 flag및 https url 생성
|
||||
// Set a flag to check if the https connection is made when using SSL and create https url
|
||||
$ssl_mode = false;
|
||||
if($member_config->enable_ssl == 'Y') {
|
||||
if(preg_match('/^https:\/\//i',Context::getRequestUri())) $ssl_mode = true;
|
||||
|
|
|
|||
|
|
@ -2,35 +2,32 @@
|
|||
/**
|
||||
* @class messageView
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief message모듈의 view class
|
||||
* @brief view class of the message module
|
||||
**/
|
||||
|
||||
class messageView extends message {
|
||||
|
||||
/**
|
||||
* @brief 초기화
|
||||
* @brief Initialization
|
||||
**/
|
||||
function init() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 메세지 출력
|
||||
* @brief Display messages
|
||||
**/
|
||||
function dispMessage() {
|
||||
// 설정 정보를 받아옴 (module model 객체를 이용)
|
||||
// Get configurations (using module model object)
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('message');
|
||||
if(!$config->skin) $config->skin = 'default';
|
||||
|
||||
// 템플릿 경로를 지정
|
||||
// Template path
|
||||
$template_path = sprintf('%sskins/%s', $this->module_path, $config->skin);
|
||||
|
||||
// 회원 관리 정보를 받음
|
||||
// Get the member configuration
|
||||
$oModuleModel = &getModel('module');
|
||||
$member_config = $oModuleModel->getModuleConfig('member');
|
||||
Context::set('member_config', $member_config);
|
||||
|
||||
// ssl 사용시 현재 https접속상태인지에 대한 flag및 https url 생성
|
||||
// Set a flag to check if the https connection is made when using SSL and create https url
|
||||
$ssl_mode = false;
|
||||
if($member_config->enable_ssl == 'Y') {
|
||||
if(preg_match('/^https:\/\//i',Context::getRequestUri())) $ssl_mode = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue