Вход Регистрация
Файл: upload/module/comment/include/component/controller/rss.class.php
Строк: 42
<?php
/**
 * [PHPFOX_HEADER]
 */

defined('PHPFOX') or exit('NO DICE!');

/**
 * 
 * 
 * @copyright        [PHPFOX_COPYRIGHT]
 * @author          Raymond Benc
 * @package         Phpfox_Component
 * @version         $Id: rss.class.php 981 2009-09-15 13:53:22Z Raymond_Benc $
 */
class Comment_Component_Controller_Rss extends Phpfox_Component
{
    
/**
     * Class process method wnich is used to execute this component.
     */
    
public function process()
    {
        if (!
Phpfox::getParam('comment.allow_rss_feed_on_comments'))
        {
            return 
Phpfox_Error::set(Phpfox::getPhrase('comment.rss_feeds_are_disabled_for_comments'));
        }        
            
        
$aRss Phpfox::getService('comment')->getForRss($this->request()->get('type'), $this->request()->getInt('item'));
        
        
Phpfox::getService('rss')->output($aRss);        
    }
    
    
/**
     * Garbage collector. Is executed after this class has completed
     * its job and the template has also been displayed.
     */
    
public function clean()
    {
        ((
$sPlugin Phpfox_Plugin::get('comment.component_controller_rss_clean')) ? eval($sPlugin) : false);
    }
}

?>
Онлайн: 0
Реклама