mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-17 10:19:55 +09:00
merge from 1.7.3.5(r13153:r13167)
git-svn-id: http://xe-core.googlecode.com/svn/trunk@13168 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cc47d2b247
commit
2d3f149b5a
2042 changed files with 129266 additions and 126243 deletions
|
|
@ -1,88 +1,91 @@
|
|||
<?php
|
||||
/**
|
||||
* High class of rss module
|
||||
/**
|
||||
* High class of rss module
|
||||
*
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
*/
|
||||
class rss extends ModuleObject
|
||||
{
|
||||
/**
|
||||
* Additional tasks required to accomplish during the installation
|
||||
*
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
**/
|
||||
* @return Object
|
||||
*/
|
||||
function moduleInstall()
|
||||
{
|
||||
// Register in action forward
|
||||
$oModuleController = &getController('module');
|
||||
|
||||
class rss extends ModuleObject {
|
||||
$oModuleController->insertActionForward('rss', 'view', 'rss');
|
||||
$oModuleController->insertActionForward('rss', 'view', 'atom');
|
||||
// 2007.10.18 Add a trigger for participating additional configurations of the service module
|
||||
$oModuleController->insertTrigger('module.dispAdditionSetup', 'rss', 'view', 'triggerDispRssAdditionSetup', 'before');
|
||||
// 2007. 10. 19 Call the trigger to set RSS URL before outputing
|
||||
$oModuleController->insertTrigger('moduleHandler.proc', 'rss', 'controller', 'triggerRssUrlInsert', 'after');
|
||||
|
||||
/**
|
||||
* Additional tasks required to accomplish during the installation
|
||||
*
|
||||
* @return Object
|
||||
**/
|
||||
function moduleInstall() {
|
||||
// Register in action forward
|
||||
$oModuleController = &getController('module');
|
||||
return new Object();
|
||||
}
|
||||
|
||||
$oModuleController->insertActionForward('rss', 'view', 'rss');
|
||||
$oModuleController->insertActionForward('rss', 'view', 'atom');
|
||||
// 2007.10.18 Add a trigger for participating additional configurations of the service module
|
||||
$oModuleController->insertTrigger('module.dispAdditionSetup', 'rss', 'view', 'triggerDispRssAdditionSetup', 'before');
|
||||
// 2007. 10. 19 Call the trigger to set RSS URL before outputing
|
||||
$oModuleController->insertTrigger('moduleHandler.proc', 'rss', 'controller', 'triggerRssUrlInsert', 'after');
|
||||
/**
|
||||
* A method to check if the installation has been successful
|
||||
* @return bool
|
||||
*/
|
||||
function checkUpdate()
|
||||
{
|
||||
$oModuleModel = &getModel('module');
|
||||
// Add the Action forward for atom
|
||||
if(!$oModuleModel->getActionForward('atom')) return true;
|
||||
// 2007. 10. Add a trigger for participating additional configurations of the service module
|
||||
if(!$oModuleModel->getTrigger('module.dispAdditionSetup', 'rss', 'view', 'triggerDispRssAdditionSetup', 'before')) return true;
|
||||
// 2007. 10. 19 Call the trigger to set RSS URL before outputing
|
||||
if(!$oModuleModel->getTrigger('moduleHandler.proc', 'rss', 'controller', 'triggerRssUrlInsert', 'after')) return true;
|
||||
|
||||
return new Object();
|
||||
}
|
||||
if($oModuleModel->getTrigger('display', 'rss', 'controller', 'triggerRssUrlInsert', 'before')) return true;
|
||||
|
||||
/**
|
||||
* A method to check if the installation has been successful
|
||||
* @return bool
|
||||
**/
|
||||
function checkUpdate() {
|
||||
$oModuleModel = &getModel('module');
|
||||
// Add the Action forward for atom
|
||||
if(!$oModuleModel->getActionForward('atom')) return true;
|
||||
// 2007. 10. Add a trigger for participating additional configurations of the service module
|
||||
if(!$oModuleModel->getTrigger('module.dispAdditionSetup', 'rss', 'view', 'triggerDispRssAdditionSetup', 'before')) return true;
|
||||
// 2007. 10. 19 Call the trigger to set RSS URL before outputing
|
||||
if(!$oModuleModel->getTrigger('moduleHandler.proc', 'rss', 'controller', 'triggerRssUrlInsert', 'after')) return true;
|
||||
// 2012. 08. 29 Add a trigger to copy additional setting when the module is copied
|
||||
if(!$oModuleModel->getTrigger('module.procModuleAdminCopyModule', 'rss', 'controller', 'triggerCopyModule', 'after')) return true;
|
||||
|
||||
if($oModuleModel->getTrigger('display', 'rss', 'controller', 'triggerRssUrlInsert', 'before')) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
// 2012. 08. 29 Add a trigger to copy additional setting when the module is copied
|
||||
if(!$oModuleModel->getTrigger('module.procModuleAdminCopyModule', 'rss', 'controller', 'triggerCopyModule', 'after')) return true;
|
||||
/**
|
||||
* Execute update
|
||||
*
|
||||
* @return Object
|
||||
*/
|
||||
function moduleUpdate()
|
||||
{
|
||||
$oModuleModel = &getModel('module');
|
||||
$oModuleController = &getController('module');
|
||||
// Add atom act
|
||||
if(!$oModuleModel->getActionForward('atom'))
|
||||
$oModuleController->insertActionForward('rss', 'view', 'atom');
|
||||
// 2007. 10. An additional set of 18 to participate in a service module, add a trigger
|
||||
if(!$oModuleModel->getTrigger('module.dispAdditionSetup', 'rss', 'view', 'triggerDispRssAdditionSetup', 'before'))
|
||||
$oModuleController->insertTrigger('module.dispAdditionSetup', 'rss', 'view', 'triggerDispRssAdditionSetup', 'before');
|
||||
// 2007. 10. 19 outputs the trigger before you call to set up rss url
|
||||
if(!$oModuleModel->getTrigger('moduleHandler.proc', 'rss', 'controller', 'triggerRssUrlInsert', 'after'))
|
||||
$oModuleController->insertTrigger('moduleHandler.proc', 'rss', 'controller', 'triggerRssUrlInsert', 'after');
|
||||
if($oModuleModel->getTrigger('display', 'rss', 'controller', 'triggerRssUrlInsert', 'before'))
|
||||
$oModuleController->deleteTrigger('display', 'rss', 'controller', 'triggerRssUrlInsert', 'before');
|
||||
|
||||
return false;
|
||||
}
|
||||
// 2012. 08. 29 Add a trigger to copy additional setting when the module is copied
|
||||
if(!$oModuleModel->getTrigger('module.procModuleAdminCopyModule', 'rss', 'controller', 'triggerCopyModule', 'after'))
|
||||
{
|
||||
$oModuleController->insertTrigger('module.procModuleAdminCopyModule', 'rss', 'controller', 'triggerCopyModule', 'after');
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute update
|
||||
*
|
||||
* @return Object
|
||||
**/
|
||||
function moduleUpdate() {
|
||||
$oModuleModel = &getModel('module');
|
||||
$oModuleController = &getController('module');
|
||||
// Add atom act
|
||||
if(!$oModuleModel->getActionForward('atom'))
|
||||
$oModuleController->insertActionForward('rss', 'view', 'atom');
|
||||
// 2007. 10. An additional set of 18 to participate in a service module, add a trigger
|
||||
if(!$oModuleModel->getTrigger('module.dispAdditionSetup', 'rss', 'view', 'triggerDispRssAdditionSetup', 'before'))
|
||||
$oModuleController->insertTrigger('module.dispAdditionSetup', 'rss', 'view', 'triggerDispRssAdditionSetup', 'before');
|
||||
// 2007. 10. 19 outputs the trigger before you call to set up rss url
|
||||
if(!$oModuleModel->getTrigger('moduleHandler.proc', 'rss', 'controller', 'triggerRssUrlInsert', 'after'))
|
||||
$oModuleController->insertTrigger('moduleHandler.proc', 'rss', 'controller', 'triggerRssUrlInsert', 'after');
|
||||
if($oModuleModel->getTrigger('display', 'rss', 'controller', 'triggerRssUrlInsert', 'before'))
|
||||
$oModuleController->deleteTrigger('display', 'rss', 'controller', 'triggerRssUrlInsert', 'before');
|
||||
return new Object(0, 'success_updated');
|
||||
}
|
||||
|
||||
// 2012. 08. 29 Add a trigger to copy additional setting when the module is copied
|
||||
if(!$oModuleModel->getTrigger('module.procModuleAdminCopyModule', 'rss', 'controller', 'triggerCopyModule', 'after'))
|
||||
{
|
||||
$oModuleController->insertTrigger('module.procModuleAdminCopyModule', 'rss', 'controller', 'triggerCopyModule', 'after');
|
||||
}
|
||||
|
||||
return new Object(0, 'success_updated');
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-generate the cache file
|
||||
*
|
||||
* @return void
|
||||
**/
|
||||
function recompileCache() {
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
/**
|
||||
* Re-generate the cache file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function recompileCache()
|
||||
{
|
||||
}
|
||||
}
|
||||
/* End of file rss.class.php */
|
||||
/* Location: ./modules/rss/rss.class.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue