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