コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
ファイル: model.ModelUpload.php プロジェクト: arno06/Achilles
 public function deleteById($pId)
 {
     File::delete($this->getValueById("path_upload", $pId));
     parent::deleteById($pId);
 }
コード例 #3
0
ファイル: model.ModelLink.php プロジェクト: arno06/Savely
 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);
 }