当前位置: 首页>>代码示例>>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;未经允许,请勿转载。