Exemplo n.º 1
0
 public function xmlRouter()
 {
     $sAction = $this->httpRequest->get('action');
     $mParam = $this->httpRequest->get('param');
     $this->_xmlRouter($sAction, $mParam);
     $this->sXmlType = 'rss';
     $this->view->current_date = DateFormat::getRss();
     // Date format for RSS feed
     // RSS router
     switch ($sAction) {
         case 'blog':
         case 'note':
         case 'forum-topic':
             $this->sAction = $sAction;
             break;
         case 'comment-profile':
         case 'comment-blog':
         case 'comment-note':
         case 'comment-picture':
         case 'comment-video':
         case 'comment-game':
             $this->view->setCaching(false);
             // We disable the cache since they are dynamic pages managed by the router.
             $this->sAction = 'comment.inc';
             break;
         case 'forum-post' && !empty($mParam) && is_numeric($mParam):
             $this->view->setCaching(false);
             // We disable the cache since they are dynamic pages managed by the router.
             $this->view->forums_messages = $this->oDataModel->getForumsMessages($mParam);
             $this->sAction = $sAction;
             break;
         default:
             $this->displayPageNotFound(t('Not Found RSS Feed!'));
     }
     $this->xmlOutput();
 }