public function delete()
 {
     if ($this->id > 0) {
         $contenu = new Contenu($this->id);
         $contenu->delete();
         ActionsModules::instance()->appel_module("supcont", $contenu);
     } else {
         throw new TheliaAdminException("Content does not Exist", TheliaAdminException::CONTENT_NOT_FOUND);
     }
     redirige("listdos.php?parent=" . $this->dossier);
 }
Пример #2
0
function supprimer($id, $parent)
{
    $contenu = new Contenu($id);
    $contenu->delete();
    ActionsModules::instance()->appel_module("supcont", $contenu);
    redirige("listdos.php?parent=" . $parent);
    exit;
}