Ignore:
Timestamp:
07/23/12 10:58:43 (12 years ago)
Author:
tezza
Message:

Ticket #2971 - Acrescentado informações de ACLs no retorno das pastas compartilhadas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.4.2-expresso2/prototype/services/ImapServiceAdapter.php

    r6700 r6845  
    7878                                foreach ($result as $res) { 
    7979 
    80                                         $response[] = array( 
     80                                        //monta o array padrao 
     81                                        $array = array( 
    8182                                                        'id' => mb_convert_encoding( $res['folder_id'], 'UTF-8', 'UTF7-IMAP' ), 
    8283                                                        'commonName' => mb_convert_encoding( $res['folder_name'], 'UTF-8' , 'UTF7-IMAP' ), 
    8384                                                        'parentFolder' => mb_convert_encoding( $res['folder_parent'], 'UTF-8' , 'UTF7-IMAP' ), 
    8485                                                        'messageCount' => array('unseen' => isset($res['folder_unseen']) ? $res['folder_unseen'] : null, 'total' => null) 
    85                                                 ); 
    86                                 } 
    87  
     86                                        ); 
     87 
     88                                        //se existir compartilhamento para pasta compartilhada 
     89                                        //adicionar array de permissoes 
     90                                        if(isset($res['acl_share'])){ 
     91                                                $array['acl_share'] = $res['acl_share']; 
     92                                        } 
     93                                        $response[] = $array; 
     94                                } 
    8895                                return $response; 
    8996                        } 
Note: See TracChangeset for help on using the changeset viewer.