Example #1
0
 public function updateUser(User $user)
 {
     $this->webClient->put(MediaSiloResourcePaths::USERS, $user->toJson());
 }
 /**
  * Updates a User profile based on update-able parameters
  *
  * @param $userId
  * @param null $firstName
  * @param null $lastName
  * @param null $username
  * @param null $email
  * @param null $password
  * @param null $address
  * @param null $phone
  * @param null $mobile
  * @param null $company
  * @param null $status
  * @param null $defaultRowTemplateId
  */
 public function updateUserProfile($userId, $firstName = null, $lastName = null, $username = null, $email = null, $password = null, $address = null, $phone = null, $mobile = null, $company = null, $status = null, $defaultRowTemplateId = null)
 {
     $user = new User($address, $company, $defaultRowTemplateId, $email, $firstName, $userId, $lastName, $mobile, null, $phone, null, null, null, $status, $username, null);
     if (!is_null($password)) {
         $user->setPassword($password);
     }
     $this->userProxy->updateUser($user);
 }