liste_suggestion=$liste_suggestions; } public function export_xml($sugg_id) { global $charset; $sugg=new suggestions($sugg_id); $notice="\n"; if($sugg->code || $sugg->prix){ $notice.=" ".($sugg->code?"".htmlspecialchars($sugg->code,ENT_QUOTES,$charset)."":"")." ".($sugg->prix?"".htmlspecialchars($sugg->prix,ENT_QUOTES,$charset)."":"")." "; } $notice.=" ".htmlspecialchars($sugg->titre,ENT_QUOTES,$charset)." "; $notice.=" ".htmlspecialchars($sugg->editeur,ENT_QUOTES,$charset)." "; if($sugg->date_publi){ $notice.=" ".htmlspecialchars($sugg->date_publi,ENT_QUOTES,$charset)." "; } $notice.=" ".htmlspecialchars($sugg->auteur,ENT_QUOTES,$charset)." "; if($sugg->url_suggestion){ $notice.=" ".htmlspecialchars($sugg->url_suggestion,ENT_QUOTES,$charset)." "; } $notice.=""; return $notice; } public function get_next_notice() { if ($this->currentliste_suggestion)) { $notice=$this->export_xml($this->liste_suggestion[$this->current]); $this->current++; return $notice; } } } ?>