categories($path); } function all_links($path = array()) { $_path = array("root", "links"); foreach($path as $__path) $_path[] = $__path; if(($id = $this->id_categorie($_path)) !== false) { return $this->sub_categories($id, null); } return false; } function links_categorie($id) { return $this->categorie($id); } function add_links_categorie($nom, $titre, $description, $url = null, $parent = null) { return $this->add_categorie ( $nom, $titre, null, $description, $url, isset($parent) ? $parent : $this->id_categorie(array("root", "menus")) ); } function set_links_categorie($id, $nom, $titre, $description, $url, $ordre = null) { return $this->set_categorie($id, $nom, $titre, null, $description, $url, $ordre); } function del_links_categorie($id) { return $this->del_categorie($id, true); } } ?>