public function delete() { if ($this->id > 0) { parent::delete(); } else { throw new TheliaAdminException("Folder does not Exist", TheliaAdminException::FOLDER_NOT_FOUND); } redirige("listdos.php?parent=" . $this->parent); }
function supprimer($id, $parent) { $dossier = new Dossier($id); $dossier->delete(); ActionsModules::instance()->appel_module("supdos", $dossier); redirige("listdos.php?parent=" . $parent); }