本文整理汇总了PHP中app\models\Client::getNewCloakedClientId方法的典型用法代码示例。如果您正苦于以下问题:PHP Client::getNewCloakedClientId方法的具体用法?PHP Client::getNewCloakedClientId怎么用?PHP Client::getNewCloakedClientId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app\models\Client
的用法示例。
在下文中一共展示了Client::getNewCloakedClientId方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: postSignUp
public function postSignUp(Request $request, PublicForms $publicForms, User $user, CommonCode $cCode, Client $client, Role_user $roleUser, Role $role)
{
$validation_rules = $publicForms->getValidationRulesSignUp();
$this->validate($request, $validation_rules);
$arr_request = $publicForms->getRequestArraySignup($request);
// $arr_request = $admin->getRequestArray($request);
$user->email = $arr_request['email'];
$user->password = $arr_request['password'];
$user->name = '';
$user->save();
$client->cloaked_client_id = $client->getNewCloakedClientId($user->id);
$client->user_id = $user->id;
$client->first_name = $arr_request['first_name'];
$client->last_name = $arr_request['last_name'];
$client->company = $arr_request['company'];
$client->client_url = $arr_request['client_url'];
$client->save();
$bool_role_assigned = $roleUser->add_role_by_name($user->id, 'client', $role);
$data = $publicForms->getDataArrayPostSignUp($arr_request, $user->id, $client->cloaked_client_id, $bool_role_assigned);
return view('public/sign_up_results')->with('data', $data);
}
示例2: post_add_user
public function post_add_user(Request $request, Admin $admin, User $user, Client $client, CommonCode $cCode)
{
$validation_rules = $admin->getValidationRules();
$this->validate($request, $validation_rules);
$arr_request = $admin->getRequestArray($request);
$user->email = $arr_request['email'];
$user->password = $arr_request['password'];
$user->name = '';
$user->save();
$client->cloaked_client_id = $client->getNewCloakedClientId($user->id);
$client->user_id = $user->id;
$client->first_name = $arr_request['first_name'];
$client->last_name = $arr_request['last_name'];
$client->company = $arr_request['company'];
$client->save();
// $user_id = $user->id;
// return to raw password for view
$arr_request['password'] = $request->password;
$data = $admin->getDataArray($arr_request, $user->id, $client->cloaked_client_id, $this->arr_logged_in_user);
return view('admin/add_user_results_admin')->with('data', $data);
}