mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2892 201d5d3c-b55e-5fd7-737f-ddc643e51545
42 lines
1.2 KiB
PHP
42 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* @class rssController
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief rss module의 controller class
|
|
*
|
|
* RSS 2.0형식으로 문서 출력
|
|
*
|
|
**/
|
|
|
|
class rssController extends rss {
|
|
|
|
/**
|
|
* @brief 초기화
|
|
**/
|
|
function init() {
|
|
}
|
|
|
|
/**
|
|
* @brief RSS 사용 유무를 체크하여 rss url 추가
|
|
**/
|
|
function triggerRssUrlInsert() {
|
|
$current_module_srl = Context::get('module_srl');
|
|
|
|
if(!$current_module_srl) {
|
|
// 선택된 모듈의 정보를 가져옴
|
|
$current_module_info = Context::get('current_module_info');
|
|
$current_module_srl = $current_module_info->module_srl;
|
|
}
|
|
|
|
if(!$current_module_srl) return new Object();
|
|
|
|
// 선택된 모듈의 rss설정을 가져옴
|
|
$oRssModel = &getModel('rss');
|
|
$rss_config = $oRssModel->getRssModuleConfig($current_module_srl);
|
|
|
|
if($rss_config->open_rss != 'N') Context::set('rss_url', getUrl('','mid',Context::get('mid'),'act','rss'));
|
|
|
|
return new Object();
|
|
}
|
|
}
|
|
?>
|