Changeset 5780 for trunk/prototype
- Timestamp:
- 03/21/12 17:32:56 (13 years ago)
- Location:
- trunk/prototype
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/constants.php
r5592 r5780 28 28 define('ICAL_ACTION_REPLY', 5); 29 29 define('ICAL_ACTION_SUGGESTION', 6); 30 define('ICAL_ACTION_IMPORT_REQUIRED', 7); 30 31 31 32 define('ATTENDEE_ACL_ORGANIZATION', 'o'); 32 define('ATTENDEE_ACL_WRITE', 2);33 define('ATTENDEE_ACL_PARTICIPATION_REQUIRED', ' w');33 define('ATTENDEE_ACL_WRITE', 'w'); 34 define('ATTENDEE_ACL_PARTICIPATION_REQUIRED', 'p'); 34 35 define('ATTENDEE_ACL_INVITE_GUESTES', 'i'); 35 36 define('ATTENDEE_ACL_READ', 'r'); -
trunk/prototype/services/iCal.php
r5736 r5780 477 477 public function analize ( $data , $params = false) 478 478 { 479 479 $vcalendar = new icalCreator( ); 480 480 $vcalendar->parse(trim($data)); 481 481 $vcalendar->sort(); … … 503 503 if($schedulable ) //Caso o evento exista 504 504 { 505 if(!self::_existInMyCalendars($schedulable['id'])) 506 $interation = ICAL_ACTION_IMPORT; 507 else 505 if(!self::_existInMyCalendars($schedulable['id'])){ 506 foreach($schedulable['participants'] as $value) 507 if($value['user']['id'] == Config::me('uidNumber')){ 508 $interation = ( strrpos($value['acl'], ATTENDEE_ACL_PARTICIPATION_REQUIRED) ) ? ICAL_ACTION_IMPORT_REQUIRED : ICAL_ACTION_IMPORT; 509 break; 510 } 511 }else 508 512 { 509 513 if( self::_getTime($component , 'dtstamp') > $schedulable['dtstamp'] || $component->getProperty( 'sequence' , false , false ) > $schedulable['sequence']) //Organizador esta requisitando que você atualize o evento
Note: See TracChangeset
for help on using the changeset viewer.