Changeset 5896 for sandbox/webservice


Ignore:
Timestamp:
04/09/12 14:12:58 (12 years ago)
Author:
niltonneto
Message:

Ticket #2507 - Padronizado valor de retorno no método Expresso.getUserProfile().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/api/json-rpc/Expresso.php

    r5895 r5896  
    2727        protected function getUserProfile(){ 
    2828                return array( 
    29                         'account_id'            => $GLOBALS['phpgw_info']['user']['account_id'], 
    30                         'email'                         => $GLOBALS['phpgw_info']['user']['email'], 
    31                         'telephonenumber'       => $GLOBALS['phpgw_info']['user']['telephonenumber'], 
    32                         'fullname'                      => $GLOBALS['phpgw_info']['user']['fullname'] 
     29                        'contactID'                     => $GLOBALS['phpgw_info']['user']['account_id'], 
     30                        'contactMails'          => array($GLOBALS['phpgw_info']['user']['email']), 
     31                        'contactPhones'         => array($GLOBALS['phpgw_info']['user']['telephonenumber']), 
     32                        'contactFullName'       => $GLOBALS['phpgw_info']['user']['fullname'] 
    3333                ); 
    3434        } 
     
    7777                                $this->result = array( 
    7878                                                'auth'                  => $sessionid.":".$GLOBALS['phpgw']->session->kp3, 
    79                                                 'profile'               => $this->getUserProfile() 
     79                                                'profile'               => array($this->getUserProfile()) 
    8080                                        ); 
    8181                        } 
Note: See TracChangeset for help on using the changeset viewer.