28 protected $sAdresseRss;
30 protected $sName=
'news';
57 $this->header.=
'<title>'.htmlentities($sTitre).
'</title>';
66 $this->header.=
'<link>'.htmlentities($sUrl).
'</link>';
74 $this->header.=
'<description><![CDATA['.$sDesc.
']]></description>';
82 $this->header.=
'<language><![CDATA['.$sLang .
']]></language>';
90 $this->sAdresseRss=$sAdresseRss;
99 $this->news.=
'<item>';
100 $this->news.=
'<title><![CDATA['.$tab[
'titre'].
']]></title>';
101 if(isset($tab[
'date'])){
102 $this->news.=
'<pubDate>'.date(
"r", strtotime($tab[
'date'])).
'</pubDate>';
104 if(isset($tab[
'auteur'])){
105 $this->news.=
'<author><![CDATA['.$tab[
'auteur'].
']]></author>';
107 $this->news.=
'<description><![CDATA['.$tab[
'desc'].
']]></description>';
108 $this->news.=
'<guid>'.$this->sUrl.
'#'.$tab[
'id'].
'</guid>';
109 if(isset($tab[
'link'])){
110 $this->news.=
'<link>'.$tab[
'link'].
'</link>';
113 $this->news.=
'</item>';
124 $head=
'<?xml version="1.0" encoding="ISO-8859-1" ?>'.
"\n";
125 $head.=
'<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">';
127 $atom=
'<atom:link href="'.$this->sAdresseRss.
'" rel="self" type="application/rss+xml" />';
128 $sRss=$head.
'<channel>'.$atom.$this->header.$this->news.
'</channel>'.$foot;
131 $oFile->setContent($sRss);
static getConfigVar($sCatAndVar, $uDefaut=null)