mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5785 201d5d3c-b55e-5fd7-737f-ddc643e51545
76 lines
3 KiB
PHP
76 lines
3 KiB
PHP
<?php
|
|
/**
|
|
* @class rss
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief rss module의 view class
|
|
**/
|
|
|
|
class rss extends ModuleObject {
|
|
|
|
/**
|
|
* @brief 설치시 추가 작업이 필요할시 구현
|
|
**/
|
|
function moduleInstall() {
|
|
// action forward에 등록
|
|
$oModuleController = &getController('module');
|
|
|
|
$oModuleController->insertActionForward('rss', 'view', 'rss');
|
|
$oModuleController->insertActionForward('rss', 'view', 'atom');
|
|
|
|
// 2007. 10. 18 서비스형 모듈의 추가 설정에 참여하기 위한 trigger 추가
|
|
$oModuleController->insertTrigger('module.dispAdditionSetup', 'rss', 'view', 'triggerDispRssAdditionSetup', 'before');
|
|
|
|
// 2007. 10. 19 출력하기 전에 rss url을 세팅하는 트리거 호출
|
|
$oModuleController->insertTrigger('display', 'rss', 'controller', 'triggerRssUrlInsert', 'before');
|
|
|
|
return new Object();
|
|
}
|
|
|
|
/**
|
|
* @brief 설치가 이상이 없는지 체크하는 method
|
|
**/
|
|
function checkUpdate() {
|
|
$oModuleModel = &getModel('module');
|
|
|
|
// atom 을 위한 Action forward 추가
|
|
if(!$oModuleModel->getActionForward('atom')) return true;
|
|
|
|
// 2007. 10. 18 서비스형 모듈의 추가 설정에 참여하기 위한 trigger 추가
|
|
if(!$oModuleModel->getTrigger('module.dispAdditionSetup', 'rss', 'view', 'triggerDispRssAdditionSetup', 'before')) return true;
|
|
|
|
// 2007. 10. 19 출력하기 전에 rss url을 세팅하는 트리거 호출
|
|
if(!$oModuleModel->getTrigger('display', 'rss', 'controller', 'triggerRssUrlInsert', 'before')) return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* @brief 업데이트 실행
|
|
**/
|
|
function moduleUpdate() {
|
|
$oModuleModel = &getModel('module');
|
|
$oModuleController = &getController('module');
|
|
|
|
// atom act 추가
|
|
if(!$oModuleModel->getActionForward('atom'))
|
|
$oModuleController->insertActionForward('rss', 'view', 'atom');
|
|
|
|
// 2007. 10. 18 서비스형 모듈의 추가 설정에 참여하기 위한 trigger 추가
|
|
if(!$oModuleModel->getTrigger('module.dispAdditionSetup', 'rss', 'view', 'triggerDispRssAdditionSetup', 'before'))
|
|
$oModuleController->insertTrigger('module.dispAdditionSetup', 'rss', 'view', 'triggerDispRssAdditionSetup', 'before');
|
|
|
|
// 2007. 10. 19 출력하기 전에 rss url을 세팅하는 트리거 호출
|
|
if(!$oModuleModel->getTrigger('display', 'rss', 'controller', 'triggerRssUrlInsert', 'before'))
|
|
$oModuleController->insertTrigger('display', 'rss', 'controller', 'triggerRssUrlInsert', 'before');
|
|
|
|
return new Object(0, 'success_updated');
|
|
}
|
|
|
|
/**
|
|
* @brief 캐시 파일 재생성
|
|
**/
|
|
function recompileCache() {
|
|
}
|
|
|
|
}
|
|
?>
|