public function GetUser($userId, $getPhoneAccess = false, $skipUpdateAccount = false) { $userId = intval($userId); if ($userId <= 0) { return false; } $ViHttp = new CVoxImplantHttp(); $result = $ViHttp->GetUser($userId, $getPhoneAccess); if (!$result || $ViHttp->GetError()->error) { $this->error = new CVoxImplantError(__METHOD__, $ViHttp->GetError()->code, $ViHttp->GetError()->msg); return false; } if (!$skipUpdateAccount) { $ViAccount = new CVoxImplantAccount(); $ViAccount->SetAccountName($result->account_name); $ViAccount->SetAccountBalance($result->account_balance); $ViAccount->SetAccountCurrency($result->account_currency); } return $result; }