contenus(array("spotlights"), $start); } function spotlight($id = null) { if ( ( $contenus = $this->contenus ( array("spotlights"), 0, 1, isset($id) ? " AND #--contenus.id=".$this->eq($id) : " AND public=1 AND date_publication <= NOW()" ) ) !== false ) { $spotlight = (($spotlight = current($contenus["list"])) !== false ? $spotlight : (isset($id) ? false : array())); return $spotlight; } return false; } function add_spotlight($titre, $contenu, $auteur, $date_publication, $public) { if(($id_categorie = $this->id_categorie(array("spotlights"))) !== false) { if(isset($id_categorie)) { return $this->add_contenu("", $id_categorie, $titre, "", $contenu, $auteur, $date_publication, $public); } } return false; } function set_spotlight($id, $titre, $contenu, $auteur, $date_publication, $public) { if(($id_categorie = $this->id_categorie(array("spotlights"))) !== false) { if(isset($id_categorie)) { return $this->set_contenu($id, "", $id_categorie, $titre, "", $contenu, $auteur, $date_publication, $public); } } return false; } function del_spotlight($id) { return $this->del_contenu($id); } } ?>