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


PHP Client::getUserID方法代碼示例

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


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

示例1: getStepOne

 public function getStepOne(Request $request, ThreeStep $threeStep, Client $client, ThreeStepUser $threeStepUser)
 {
     $arr_request = $threeStep->getRequestArrayInitial($request);
     $validateVal = $threeStep->manuallyValidate($arr_request, 10, 11);
     // return codes
     // -1 empty,
     // -2 contains spaces,
     // -3 contains unacceptable characters,
     // -4  < minLength or > maxlength
     // -5 client ID sent not found in database
     // -6 return_url value is empty
     // -7 return_url is not a URL
     // -8 client ID found but three step not initialized
     if ($validateVal < 0) {
         redirect('/threeStep/invalidData/' . $arr_request['client_id'] . '/' . $validateVal);
     } else {
         // then validate that the client ID is in the database
         if ($client->clientIdIsNotValid($arr_request['client_id'])) {
             redirect('/threeStep/invalidData/' . $arr_request['client_id'] . '/' . -5);
         } else {
             $user_id = $client->getUserID($arr_request['client_id']);
             if (!$threeStepUser->TSinitialized($user_id)) {
                 redirect('/threeStep/invalidData/' . $arr_request['client_id'] . '/' . -8);
             } else {
                 //  likely start here
                 //					$objThisClient = $client->getObjClient($arr_request['client_id']); //($cloaked_client_id);
                 //					$ts_implement = $threeStepUser->getTSImplement($user_id);
                 //					if (!$ts_implement)
                 //					{
                 //						return response(1);
                 //					}
                 //					else
                 //					{
                 /*						if ($threeStep->checkThreeStep($user_id, $request))
                 						{
                 							$threeStep->updateTSSessionTimeout($objThisClient->session_id);
                 							return response(1);
                 						}
                 						else
                 						{
                 							return response(0);
                 						}
                 */
                 //					} // end else, if !ts_implement
                 //    	if (!($threeStep->getStepOneManuallyValidate($arr_request)))
                 //			return view('three_step/step_one_fail');
                 $objThisClient = $client->getObjClient($arr_request['client_id']);
                 $user_id = $objThisClient->user_id;
                 //    	$threeStepUser = $threeStepUser
                 //    		->where('user_id', $user_id)
                 //   		->first();
                 //    	if ($threeStepUser == null)
                 //   	{
                 //    		return view('three_step/invalid_client_id');
                 //    	}
                 //    	else
                 //    	{
                 $ts_bypass = $threeStepUser->getTSBypass($user_id);
                 $bypass_warning = $threeStep->setBypassWarning($ts_bypass);
                 $data = $threeStep->getDataArrayGetStepOne($threeStepUser->hint, $arr_request['client_id'], $ts_bypass, $bypass_warning);
                 return view('three_step/step_one')->with('data', $data);
                 //   	}
             }
             // end else, if !TSinitialized()
         }
         // end else, if client ID is not valid
     }
     // end else, if validation not passed
 }
開發者ID:jenniferbradley49,項目名稱:server,代碼行數:69,代碼來源:ThreeStepController.php


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