mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 01:03:28 +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,34 +2,33 @@
|
|||
/**
|
||||
* @class rssView
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief rss module의 view class
|
||||
* @brief The view class of the rss module
|
||||
*
|
||||
* Feed 문서 출력
|
||||
* Feed the document output
|
||||
*
|
||||
**/
|
||||
|
||||
class rssView extends rss {
|
||||
|
||||
/**
|
||||
* @brief 초기화
|
||||
* @brief Initialization
|
||||
**/
|
||||
function init() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 피드 출력
|
||||
* 직접 RSS를 출력하려고 할때에는 $oRssView->rss($document_list)를 통해서 결과값을 직접 지정 가능
|
||||
* @brief Feed output
|
||||
* When trying to directly print out the RSS, the results variable can be directly specified through $oRssView->rss($document_list)
|
||||
**/
|
||||
function rss($document_list = null, $rss_title = null, $add_description = null) {
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oModuleModel = &getModel('module');
|
||||
$oModuleController = &getController('module');
|
||||
|
||||
// 다른 모듈에서 method로 호출되는 것이 아니라면 현재 요청된 모듈을 대상으로 글과 정보를 구함
|
||||
// Get the content and information for the current requested module if the method is not called from another module
|
||||
if(!$document_list) {
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$site_srl = $site_module_info->site_srl;
|
||||
$mid = Context::get('mid'); ///< 대상 모듈 id, 없으면 전체로
|
||||
$mid = Context::get('mid'); // The target module id, if absent, then all
|
||||
$start_date = (int)Context::get('start_date');
|
||||
$end_date = (int)Context::get('end_date');
|
||||
|
||||
|
|
@ -37,8 +36,7 @@
|
|||
$rss_config = array();
|
||||
$total_config = '';
|
||||
$total_config = $oModuleModel->getModuleConfig('rss');
|
||||
|
||||
// 하나의 mid가 지정되어 있으면 그 mid에 대한 것만 추출
|
||||
// If one is specified, extract only for this mid
|
||||
if($mid) {
|
||||
$module_srl = $this->module_info->module_srl;
|
||||
$config = $oModuleModel->getModulePartConfig('rss', $module_srl);
|
||||
|
|
@ -46,8 +44,7 @@
|
|||
$module_srls[] = $module_srl;
|
||||
$open_rss_config[$module_srl] = $config->open_rss;
|
||||
}
|
||||
|
||||
// mid 가 선택되어 있지 않으면 전체
|
||||
// If mid is not selected, then get all
|
||||
} else {
|
||||
if($total_config->use_total_feed != 'N') {
|
||||
$rss_config = $oModuleModel->getModulePartConfigs('rss', $site_srl);
|
||||
|
|
@ -83,8 +80,7 @@
|
|||
$args->order_type = 'asc';
|
||||
$output = $oDocumentModel->getDocumentList($args);
|
||||
$document_list = $output->data;
|
||||
|
||||
// 피드 제목 및 정보등을 추출 Context::getBrowserTitle
|
||||
// Extract the feed title and information with Context::getBrowserTitle
|
||||
if($mid) {
|
||||
$info->title = Context::getBrowserTitle();
|
||||
$oModuleController->replaceDefinedLangCode($info->title);
|
||||
|
|
@ -150,17 +146,14 @@
|
|||
}
|
||||
|
||||
$info->language = Context::getLangType();
|
||||
|
||||
// RSS 출력물에서 사용될 변수 세팅
|
||||
// Set the variables used in the RSS output
|
||||
Context::set('info', $info);
|
||||
Context::set('feed_config', $config);
|
||||
Context::set('open_rss_config', $open_rss_config);
|
||||
Context::set('document_list', $document_list);
|
||||
|
||||
// 결과 출력을 XMLRPC로 강제 지정
|
||||
// Force the result output to be of XMLRPC
|
||||
Context::setResponseMethod("XMLRPC");
|
||||
|
||||
// 결과물을 얻어와서 에디터 컴포넌트등의 전처리 기능을 수행시킴
|
||||
// Perform the preprocessing function of the editor component as the results are obtained
|
||||
$path = $this->module_path.'tpl/';
|
||||
//if($args->start_date || $args->end_date) $file = 'xe_rss';
|
||||
//else $file = 'rss20';
|
||||
|
|
@ -183,47 +176,45 @@
|
|||
|
||||
$content = $oTemplate->compile($path, $file);
|
||||
Context::set('content', $content);
|
||||
|
||||
// 템플릿 파일 지정
|
||||
// Set the template file
|
||||
$this->setTemplatePath($path);
|
||||
$this->setTemplateFile('display');
|
||||
}
|
||||
|
||||
/** @brief ATOM 출력 **/
|
||||
/**
|
||||
* @brief ATOM output
|
||||
**/
|
||||
function atom() {
|
||||
Context::set('format', 'atom');
|
||||
$this->rss();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 에러 출력
|
||||
* @brief Error output
|
||||
**/
|
||||
function dispError() {
|
||||
// 출력 메세지 작성
|
||||
// Prepare the output message
|
||||
$this->rss(null, null, Context::getLang('msg_rss_is_disabled') );
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 서비스형 모듈의 추가 설정을 위한 부분
|
||||
* rss의 사용 형태에 대한 설정만 받음
|
||||
* @brief Additional configurations for a service module
|
||||
* Receive the form for the form used by rss
|
||||
**/
|
||||
function triggerDispRssAdditionSetup(&$obj) {
|
||||
$current_module_srl = Context::get('module_srl');
|
||||
$current_module_srls = Context::get('module_srls');
|
||||
|
||||
if(!$current_module_srl && !$current_module_srls) {
|
||||
// 선택된 모듈의 정보를 가져옴
|
||||
// Get information of the selected module
|
||||
$current_module_info = Context::get('current_module_info');
|
||||
$current_module_srl = $current_module_info->module_srl;
|
||||
if(!$current_module_srl) return new Object();
|
||||
}
|
||||
|
||||
// 선택된 모듈의 rss설정을 가져옴
|
||||
// Get teh RSS configurations for the selected module
|
||||
$oRssModel = &getModel('rss');
|
||||
$rss_config = $oRssModel->getRssModuleConfig($current_module_srl);
|
||||
Context::set('rss_config', $rss_config);
|
||||
|
||||
// 템플릿 파일 지정
|
||||
// Set the template file
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
$tpl = $oTemplate->compile($this->module_path.'tpl', 'rss_module_config');
|
||||
$obj .= $tpl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue