Changeset 6861 for trunk/prototype/services/iCal.php
- Timestamp:
- 07/24/12 10:32:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/services/iCal.php
r6807 r6861 572 572 $interation['schedulable://' . $schedulable['id']] = false; 573 573 break; 574 574 575 575 case 'ADD': 576 576 break; … … 720 720 721 721 case 'REPLY': 722 $interation = ICAL_ACTION_REPLY; 722 if ($schedulable = self::_getSchedulable($uid)) { 723 while ($property = $component->getProperty('attendee', FALSE, TRUE)) 724 if ($attendee = self::_getParticipantByMail(str_replace('MAILTO:', '', $property['value']), $schedulable['participants'], true)) 725 $interation = (constant('STATUS_' . strtoupper($property['params']['PARTSTAT'])) == $attendee['status']) ? ICAL_ACTION_NONE : ICAL_ACTION_REPLY; 726 }else 727 $interation = ICAL_NOT_FOUND; 723 728 break; 724 729 … … 810 815 811 816 812 private static function _getParticipantByMail($mail, &$participants ) {817 private static function _getParticipantByMail($mail, &$participants, $isFull) { 813 818 if ($participants && $participants != '') 814 819 foreach ($participants as $i => $v) 815 820 if ((is_array($v) && isset($v['user'])) && ($v['user']['mail'] == $mail || (isset($v['user']['mailAlternateAddress']) && in_array($mail, $v['user']['mailAlternateAddress'])))) 816 return$v['id'];821 return !!$isFull ? $v : $v['id']; 817 822 return false; 818 823 }
Note: See TracChangeset
for help on using the changeset viewer.