本文整理匯總了PHP中SiteHelpers::refund_limit_action方法的典型用法代碼示例。如果您正苦於以下問題:PHP SiteHelpers::refund_limit_action方法的具體用法?PHP SiteHelpers::refund_limit_action怎麽用?PHP SiteHelpers::refund_limit_action使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SiteHelpers
的用法示例。
在下文中一共展示了SiteHelpers::refund_limit_action方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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->delete_action($request->input('id'));
\SiteHelpers::refund_limit_action($request->input('id'));
$this->model->destroy($request->input('id'));
\SiteHelpers::auditTrail($request, "Delivery With ID : " . implode(",", $request->input('id')) . " , Has Been Removed Successfull");
// redirect
return Redirect::to('viewdeliveries')->with('messagetext', \Lang::get('core.note_success_delete'))->with('msgstatus', 'success');
} else {
return Redirect::to('viewdeliveries')->with('messagetext', 'No Item Deleted')->with('msgstatus', 'error');
}
}