arry_data as $k => $v) { if ($v['comment_trackback'] == 1) { $res[] = $v; unset($this->arry_data[$k]); } } $this->recordSet(array_values($this->arry_data)); $rs = new xblogcomment($res); $rs->setBlog($this->blog); return $rs; } function auteurLink() { if($this->f('comment_email') != '') { return $this->getEncodMail(); } else { return false; } } function auteurSite() { if($this->f('comment_site') != '') { return 'http://'.$this->f('comment_site'); } else { return false; } } function xGetContent() { if ($this->blog->use_smilies) { return $this->blog->addSmilies($this->getContent()); } else { return $this->getContent(); } } function getRSSSeq() { return ' '."\n"; } function getRSSItem($short=false) { $tb = (boolean) $this->f('comment_trackback'); $desc = util::cutString(strip_tags($this->getContent()),300).'...'; $content = ($short) ? $desc : util::relToAbsURL($this->getContent()); return ''."\n". ' '.($tb ? 'trackback - ' : ''). $this->blog->toXML($this->f('post_titre')).' - '. $this->blog->toXML($this->f('comment_auteur'))."\n". ' '.$this->getPermURL()."\n". ' '.$this->getIsoDate()."\n". ' '.htmlspecialchars($this->f('comment_auteur'))."\n". ' '.$this->blog->toXML($desc)."\n". ' \n". ''."\n"; } function getAtomEntry($short=false) { $tb = (boolean) $this->f('comment_trackback'); if ($short) { $content = util::cutString(strip_tags($this->getContent()),300).'...'; } else { $content = util::relToAbsURL($this->getContent()); } $id = 'tag:'.htmlspecialchars($_SERVER['HTTP_HOST']).','.date('Y-m-d',$this->getTS()). ':'.dc_app_url.'/'.$this->f('post_id').'/'.$this->f('comment_id'); return ''."\n". ' '.($tb ? 'trackback - ' : ''). $this->blog->toXML($this->f('post_titre')).' - '. $this->blog->toXML($this->f('comment_auteur'))."\n". ' '."\n". ' '.$this->getIsoDate()."\n". ' '.$id."\n". ' '.htmlspecialchars($this->f('comment_auteur'))."\n". ' '.htmlspecialchars($content)."\n". ''."\n"; } } ?>