Changeset 6930 for trunk/prototype/services
- Timestamp:
- 08/03/12 15:32:43 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/services/ImapServiceAdapter.php
r6882 r6930 78 78 foreach ($result as $res) { 79 79 80 $response[] = array( 80 //monta o array padrao 81 $array = array( 81 82 'id' => mb_convert_encoding( $res['folder_id'], 'UTF-8', 'UTF7-IMAP' ), 82 83 'commonName' => mb_convert_encoding( $res['folder_name'], 'UTF-8' , 'UTF7-IMAP' ), 83 84 'parentFolder' => mb_convert_encoding( $res['folder_parent'], 'UTF-8' , 'UTF7-IMAP' ), 84 85 '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 } 88 95 return $response; 89 96 }
Note: See TracChangeset
for help on using the changeset viewer.