/**
  * Méthode de suppression d'une entrée
  * Renvoie systématiquement à l'action "lister"
  * @return void
  */
 public function delete()
 {
     if (!$this->actions->isEnabled('delete')) {
         Go::to404();
     }
     $this->model->deleteById($_GET["id"]);
     $this->dispatchEvent(new Event(self::EVENT_SUCCESSUL_DELETE));
     Go::to($this->className);
 }
Exemplo n.º 2
0
 public function deleteById($pId)
 {
     File::delete($this->getValueById("path_upload", $pId));
     parent::deleteById($pId);
 }
Exemplo n.º 3
0
 public function deleteById($pId)
 {
     Query::delete()->from('sil_user_links')->where('id_link', Query::EQUAL, $pId)->execute($this->handler);
     Query::delete()->from('sil_states')->where('id_link', Query::EQUAL, $pId)->execute($this->handler);
     return parent::deleteById($pId);
 }