コード例 #1
0
ファイル: services.php プロジェクト: unisexx/imac
 function delete($id)
 {
     if ($id) {
         $hilight = new Hilight($id);
         $hilight->delete();
         set_notify('success', lang('delete_data_complete'));
     }
     redirect($_SERVER['HTTP_REFERER']);
 }
コード例 #2
0
 public function delete($id)
 {
     if ($id) {
         $data = new Hilight($id);
         $action = 'DELETE';
         save_logs($this->menu_id, $action, @$data->id, $action . ' ' . $data->org_name . ' Organizations ');
         $data->delete();
     }
     redirect("admin/organizations");
 }
コード例 #3
0
 public function delete($id)
 {
     if ($this->perm->can_delete == 'y') {
         if ($id) {
             $data = new Hilight($id);
             $action = 'DELETE';
             save_logs($this->menu_id, $action, $data->id, $action . ' Hilights ');
             $data->delete();
         }
     }
     redirect("admin/hilights");
 }