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


PHP Client::getObjClient方法代碼示例

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


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

示例1: getStepTwo

 /**
  * @param Request $request
  * @param ThreeStep $threeStep
  * @param ThreeStepLog $three_step_log
  * @param Role $role
  * @return Ambigous <\Illuminate\Http\$this, boolean, \Illuminate\Http\RedirectResponse>|Ambigous <\Illuminate\View\View, mixed, \Illuminate\Foundation\Application, \Illuminate\Container\static>
  */
 public function getStepTwo(Request $request, ThreeStep $threeStep, Client $client)
 {
     $validation_rules = $threeStep->getValidationRulesStepTwo();
     //    	$this->validate($request, $validation_rules);
     $arr_request = $threeStep->getRequestArrayStepTwo($request);
     //		$objClient = $client->where('cloaked_client_id', $arr_request['client_id'])->first();
     $objClient = $client->getObjClient($arr_request['client_id']);
     if ($objClient == null) {
         return view('three_step/bad_client_id');
     } else {
         $client = $objClient;
         print_r($client);
         echo "<br>";
         $objThreeStep = $threeStep->where('three_step_id', $arr_request['three_step_id'])->where('user_id', $client->user_id)->first();
         if ($objThreeStep == null) {
             return view('three_step/bad_three_step_id');
         } else {
             $threeStep = $objThreeStep;
             if ($threeStep == null) {
                 return view('three_step/step_two_fail');
             } else {
                 $redirect_url = $client->client_url;
                 $redirect_url .= "/three_step_remote/step_one/";
                 $redirect_url .= $threeStep->three_step_id;
                 return redirect($redirect_url);
             }
             // end else, if bad three step id
         }
         // end else, if $objClient == null
     }
     // end else, if objClinet == null
 }
開發者ID:jenniferbradley49,項目名稱:server,代碼行數:39,代碼來源:ThreeStepController.php


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