Changeset 5743
- Timestamp:
- 03/16/12 15:05:53 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r5742 r5743 197 197 198 198 199 $filter = array('AND', array('=', 'folderName', $folder), array('=','messageNumber', $msg_number)); 200 $followupflagged = Controller::find( 201 array('concept' => 'followupflagged'), 202 false, 203 array('filter' => $filter, 'criteria' => array('deepness' => '2')) 204 ); 205 206 if(isset($followupflagged[0]['followupflagId'])) 207 { 208 $followupflag = Controller::read( array( 'concept' => 'followupflag', 'id' => $followupflagged[0]['followupflagId'] )); 209 $followupflagged[0]['followupflag'] = $followupflag; 210 $return[$i]['followupflagged'] = $followupflagged[0]; 211 212 } 213 214 $labeleds = Controller::find( 215 array('concept' => 'labeled'), 216 false, 217 array('filter' => $filter, 'criteria' => array('deepness' => '2')) 218 ); 219 220 221 if(isset($labeleds) && count($labeleds) > 0 && $labeleds){ 222 $return[$i]['labels'] = array(); 223 224 foreach ($labeleds as $e){ 199 $filter = array('AND', array('=', 'folderName', $folder), array('=','messageNumber', $msg_number)); 200 $followupflagged = Controller::find( 201 array('concept' => 'followupflagged'), 202 false, 203 array('filter' => $filter, 'criteria' => array('deepness' => '2')) 204 ); 205 206 if(isset($followupflagged[0]['followupflagId'])) 207 { 208 $followupflag = Controller::read( array( 'concept' => 'followupflag', 'id' => $followupflagged[0]['followupflagId'] )); 209 $followupflagged[0]['followupflag'] = $followupflag; 210 $return[$i]['followupflagged'] = $followupflagged[0]; 211 212 } 213 214 $labeleds = Controller::find( 215 array('concept' => 'labeled'), 216 false, 217 array('filter' => $filter, 'criteria' => array('deepness' => '2')) 218 ); 219 225 220 226 $labels = Controller::read( array( 'concept' => 'label', 'id' => $e['labelId'])); 227 $return[$i]['labels'][] = $labels; 228 } 229 } 230 $i++; 221 if(isset($labeleds) && count($labeleds) > 0 && $labeleds){ 222 $return[$i]['labels'] = array(); 223 224 foreach ($labeleds as $e){ 225 226 $labels = Controller::read( array( 'concept' => 'label', 'id' => $e['labelId'])); 227 $return[$i]['labels'][] = $labels; 228 } 229 } 230 $i++; 231 231 } 232 232 }
Note: See TracChangeset
for help on using the changeset viewer.