当前位置: 首页>>代码示例>>PHP>>正文


PHP Client::getNewCloakedClientId方法代码示例

本文整理汇总了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);
 }
开发者ID:jenniferbradley49,项目名称:server,代码行数:21,代码来源:PublicFormsController.php

示例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);
 }
开发者ID:jenniferbradley49,项目名称:server,代码行数:21,代码来源:AdminController.php


注:本文中的app\models\Client::getNewCloakedClientId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。