當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Incident::delete方法代碼示例

本文整理匯總了PHP中CachetHQ\Cachet\Models\Incident::delete方法的典型用法代碼示例。如果您正苦於以下問題:PHP Incident::delete方法的具體用法?PHP Incident::delete怎麽用?PHP Incident::delete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CachetHQ\Cachet\Models\Incident的用法示例。


在下文中一共展示了Incident::delete方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: deleteIncidentAction

 /**
  * Deletes a given incident.
  *
  * @param \CachetHQ\Cachet\Models\Incident $incident
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function deleteIncidentAction(Incident $incident)
 {
     $incident->delete();
     return Redirect::route('dashboard.incidents.index');
 }
開發者ID:RetinaInc,項目名稱:Cachet,代碼行數:12,代碼來源:IncidentController.php

示例2: deleteIncident

 /**
  * Delete an existing incident.
  *
  * @param \CachetHQ\Cachet\Models\Inicdent $incident
  *
  * @return \Illuminate\Http\JsonResponse
  */
 public function deleteIncident(Incident $incident)
 {
     $incident->delete();
     return $this->noContent();
 }
開發者ID:2bj,項目名稱:Cachet,代碼行數:12,代碼來源:IncidentController.php

示例3: deleteScheduleAction

 /**
  * Deletes a given schedule.
  *
  * @param \CachetHQ\Cachet\Models\Incident $schedule
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function deleteScheduleAction(Incident $schedule)
 {
     $schedule->delete();
     return Redirect::route('dashboard.schedule.index')->withWarning(sprintf('%s %s', trans('dashboard.notifications.whoops'), trans('dashboard.schedule.delete.failure')));
 }
開發者ID:blumtech,項目名稱:Cachet,代碼行數:12,代碼來源:ScheduleController.php

示例4: deleteIncidentAction

 /**
  * Deletes a given incident.
  *
  * @param \CachetHQ\Cachet\Models\Incident $incident
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function deleteIncidentAction(Incident $incident)
 {
     $incident->delete();
     return Redirect::back();
 }
開發者ID:seanherron,項目名稱:Cachet,代碼行數:12,代碼來源:IncidentController.php

示例5: deleteScheduleAction

 /**
  * Deletes a given schedule.
  *
  * @param \CachetHQ\Cachet\Models\Incident $schedule
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function deleteScheduleAction(Incident $schedule)
 {
     segment_track('Dashboard', ['event' => 'Deleted Schedule']);
     $schedule->delete();
     return Redirect::back()->with('warning', sprintf('%s %s', trans('dashboard.notifications.whoops'), trans('dashboard.schedule.delete.failure')));
 }
開發者ID:hd-deman,項目名稱:Cachet,代碼行數:13,代碼來源:ScheduleController.php

示例6: deleteScheduleAction

 /**
  * Deletes a given schedule.
  *
  * @param \CachetHQ\Cachet\Models\Incident $schedule
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function deleteScheduleAction(Incident $schedule)
 {
     $schedule->delete();
     return Redirect::route('dashboard.schedule.index')->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.schedule.delete.success')));
 }
開發者ID:guduchango,項目名稱:Cachet,代碼行數:12,代碼來源:ScheduleController.php

示例7: deleteIncidentAction

 /**
  * Deletes a given incident.
  *
  * @param \CachetHQ\Cachet\Models\Incident $incident
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function deleteIncidentAction(Incident $incident)
 {
     segment_track('Dashboard', ['event' => 'Deleted Incident']);
     $incident->delete();
     return Redirect::back();
 }
開發者ID:nguyentamvinhlong,項目名稱:Cachet,代碼行數:13,代碼來源:IncidentController.php


注:本文中的CachetHQ\Cachet\Models\Incident::delete方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。