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


PHP SiteHelpers::auditTrail方法代碼示例

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


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

示例1: postDelete

 public function postDelete(Request $request)
 {
     if ($this->access['is_remove'] == 0) {
         return Redirect::to('dashboard')->with('messagetext', \Lang::get('core.note_restric'))->with('msgstatus', 'error');
     }
     // delete multipe rows
     if (count($request->input('id')) >= 1) {
         $this->model->destroy($request->input('id'));
         \SiteHelpers::auditTrail($request, "ID : " . implode(",", $request->input('id')) . "  , Has Been Removed Successfull");
         // redirect
         return Redirect::to('itemvariant')->with('messagetext', \Lang::get('core.note_success_delete'))->with('msgstatus', 'success');
     } else {
         return Redirect::to('itemvariant')->with('messagetext', 'No Item Deleted')->with('msgstatus', 'error');
     }
 }
開發者ID:KimTakBong,項目名稱:L0133T,代碼行數:15,代碼來源:ItemvariantController.php

示例2: postDelete

 public function postDelete(Request $request)
 {
     if ($this->access['is_remove'] == 0) {
         return Redirect::to('dashboard')->with('messagetext', \Lang::get('core.note_restric'))->with('msgstatus', 'error');
     }
     // delete multipe rows
     if (count($request->input('id')) >= 1) {
         foreach ($request->input('id') as $cid) {
             $userdata = $this->model->getUserFromCustomerID($cid);
             //delete PAYG balance if available
             $this->model->setPaygBalanceDefault($userdata->id, 'delete');
             //delete user object
             $authen = new User();
             $authen->destroy($userdata->id);
             $notif = array('url' => url('/ycustomers'), 'userid' => '5', 'title' => 'A customer record has been deleted.', 'note' => 'A customer has been deleted. Please review this change as soon as possible.');
             \SximoHelpers::storeNote($notif);
         }
         $this->model->destroy($request->input('id'));
         \SiteHelpers::auditTrail($request, "ID : " . implode(",", $request->input('id')) . "  , Has Been Removed Successful");
         // redirect
         return Redirect::to('ycustomers')->with('messagetext', \Lang::get('core.note_success_delete'))->with('msgstatus', 'success');
     } else {
         return Redirect::to('ycustomers')->with('messagetext', 'No Item Deleted')->with('msgstatus', 'error');
     }
 }
開發者ID:sonoftheweb,項目名稱:yallatracking_app,代碼行數:25,代碼來源:YcustomersController.php

示例3: postDelete

 public function postDelete(Request $request)
 {
     if ($this->access['is_remove'] == 0) {
         return Redirect::to('dashboard')->with('messagetext', \Lang::get('core.note_restric'))->with('msgstatus', 'error');
     }
     // delete multipe rows
     if (count($request->input('id')) >= 1) {
         $this->model->destroy($request->input('id'));
         \SiteHelpers::auditTrail($request, "ID : " . implode(",", $request->input('id')) . "  , Has Been Removed Successfull");
         $notif = array('url' => url('/viewbulkdeliveries/show/'), 'userid' => '5', 'title' => 'Bulk Delivery Removal.', 'note' => 'A bulk delivery has been removed. Please review this change as soon as possible.');
         \SximoHelpers::storeNote($notif);
         $notif = array('url' => url('/viewbulkdeliveries/show/'), 'userid' => '26', 'title' => 'Bulk Delivery Removal.', 'note' => 'A bulk delivery has been removed. Please review this change as soon as possible.');
         \SximoHelpers::storeNote($notif);
         // redirect
         return Redirect::to('viewbulkdeliveries')->with('messagetext', \Lang::get('core.note_success_delete'))->with('msgstatus', 'success');
     } else {
         return Redirect::to('viewbulkdeliveries')->with('messagetext', 'No Item Deleted')->with('msgstatus', 'error');
     }
 }
開發者ID:sonoftheweb,項目名稱:yallatracking_app,代碼行數:19,代碼來源:ViewbulkdeliveriesController.php

示例4: postDelete

 public function postDelete(Request $request)
 {
     if ($this->access['is_remove'] == 0) {
         return Redirect::to('dashboard')->with('messagetext', \Lang::get('core.note_restric'))->with('msgstatus', 'error');
     }
     // delete multipe rows
     if (count($request->input('ids')) >= 1) {
         $this->model->destroy($request->input('ids'));
         \DB::table('app_possible_answers')->whereIn('question_id', $request->input('ids'))->delete();
         \SiteHelpers::auditTrail($request, "ID : " . implode(",", $request->input('ids')) . "  , Has Been Removed Successfull");
         \Event::fire(new RevisionHasChanged(new Revision()));
         // redirect
         return Redirect::to('question')->with('messagetext', \Lang::get('core.note_success_delete'))->with('msgstatus', 'success');
     } else {
         return Redirect::to('question')->with('messagetext', 'No Item Deleted')->with('msgstatus', 'error');
     }
 }
開發者ID:alvarobfdev,項目名稱:PresentView,代碼行數:17,代碼來源:QuestionController.php

示例5: postDelete

 public function postDelete(Request $request)
 {
     if ($this->access['is_remove'] == 0) {
         return Redirect::to('dashboard')->with('messagetext', \Lang::get('core.note_restric'))->with('msgstatus', 'error');
     }
     // delete multipe rows
     /*//remove all the ids that cannot be deleted
       foreach($request->input('id') as $key=>$del_id){
           if(!$this->model->if_can_delete($del_id)){
               unset($request->input('id')[$key]);
           }
       }*/
     /*dd($request->input('id'));*/
     if (count($request->input('id')) >= 1) {
         $this->model->delete_action($request->input('id'));
         $this->model->destroy($request->input('id'));
         \SiteHelpers::auditTrail($request, "ID : " . implode(",", $request->input('id')) . "  , Has Been Removed Successfull");
         // redirect
         return Redirect::to('getdeliveries')->with('messagetext', \Lang::get('core.note_success_delete'))->with('msgstatus', 'success');
     } else {
         return Redirect::to('getdeliveries')->with('messagetext', 'No Item Deleted')->with('msgstatus', 'error');
     }
 }
開發者ID:sonoftheweb,項目名稱:yallatracking_app,代碼行數:23,代碼來源:GetdeliveriesController.php


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