本文整理匯總了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
}