Ignore:
Timestamp:
02/05/13 17:22:09 (11 years ago)
Author:
alexandrecorreia
Message:

Ticket #2507 - Correções dos retornos, padronização das variáveis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/api/rest/admin/SearchUserResource.php

    r7813 r7859  
    2828                                $list = $this->listUsers( $searchUser ); 
    2929 
     30                                $user = array(); 
     31 
     32                                foreach( $list as $_u ) 
     33                                { 
     34                                        $user['accountId']              = $_u['account_id']; 
     35                                        $user['accountLid']             = $_u['account_lid']; 
     36                                        $user['accountCn']              = $_u['account_cn']; 
     37                                        $user['accountMail']    = $_u['account_mail']; 
     38                                } 
     39 
    3040                                if( count($list) > 0 ) 
    3141                                { 
    32                                         $this->setResult( array( "result" => $list ) ); 
     42                                        $this->setResult( array( "searchUser" => $user ) ); 
    3343                                } 
    3444                                else 
Note: See TracChangeset for help on using the changeset viewer.