booked/WebServices/AccountWebService.php
/**
     * @name GetAccount
     * @description Gets the currently authenticated users's account information
     * @response AccountResponse
     * @return void
     */
@name GetAccount
@description Gets the currently authenticated users's account information
@response AccountResponse
@return void
@name GetAccount @description Gets the currently authenticated users ' s account information @response AccountResponse @return void
public function GetAccount()
    {
        $session = $this->server->GetSession();
        $user = $this->controller->LoadUser($session);
        $userId = $user->Id();
        if (empty($userId))
        {
            $this->server->WriteResponse(RestResponse::NotFound(), RestResponse::NOT_FOUND_CODE);
            return;
        }
        $attributes = $this->controller->GetUserAttributes($session);
        $this->server->WriteResponse(new AccountResponse($this->server, $user, $attributes));
    }
public function GetAccount ( ) { $ session = $ this -> server -> GetSession ( ) ; $ user = $ this -> controller -> LoadUser ( $ session ) ; $ userId = $ user -> Id ( ) ; if ( empty ( $ userId ) ) { $ this -> server -> WriteResponse ( RestResponse :: NotFound ( ) , RestResponse :: NOT_FOUND_CODE ) ; return ; } $ attributes = $ this -> controller -> GetUserAttributes ( $ session ) ; $ this -> server -> WriteResponse ( new AccountResponse ( $ this -> server , $ user , $ attributes ) ) ; }
@name GetAccount
 @description Gets the currently authenticated users's account information
 @response AccountResponse
 @return void
@name GetAccount @description Gets the currently authenticated users ' s account information @response AccountResponse @return void