예제 #1
0
파일: RSS.php 프로젝트: jeromecc/tuv2
 function addItem($titre = '', $description = '', $date = '', $lien = '', $auteur = '', $categorie = '', $comments = '')
 {
     $this->mod->MxText('item.titre', strip_tags($titre));
     $this->mod->MxText('item.description', strip_tags($description));
     $dateR = new clDate($date);
     $this->mod->MxText('item.date', $dateR->getDateRSS());
     //$this -> mod -> MxText ( 'item.datedc', $dateR->getDateRSSDC ( ) ) ;
     $this->mod->MxText('item.lien', $lien);
     $this->mod->MxText('item.auteur', $auteur);
     $this->mod->MxText('item.categorie', $categorie);
     if ($comments) {
         $this->mod->MxText('item.comments.comments', $comments);
     } else {
         $this->mod->MxBloc('item.comments', 'delete');
     }
     $this->mod->MxBloc('item', 'loop');
 }