source:
tags/expresso/2.4.1/expressoCalendar/docs/caldav-PUT-vcalendar.php.diff
@
6754
Revision 6754, 1.1 KB checked in by niltonneto, 12 years ago (diff) |
---|
-
caldav-PUT-vcalendar.php
old new 91 91 $put_action_type = ($dav_resource->Exists() ? 'UPDATE' : 'INSERT'); 92 92 $collection = $dav_resource->GetParentContainer(); 93 93 94 /////Expresso 95 if(strpos($request->user_agent, 'ExpressoLivre') === false) //Ignorar eventos do expresso 96 { 97 $expresso = 'PATH_DO_SEU_EXPRESSO'; 98 include_once($expresso.'/prototype/api/controller.php'); 99 include_once($expresso.'/prototype/modules/calendar/interceptors/DAViCalAdapter.php'); 100 101 $params = array(); 102 $dav_name = explode('/', $dav_resource->GetProperty('dav_name')); 103 $params['calendarName'] = $dav_name[ (count($dav_name)-3) ] .'/'. $dav_name[ (count($dav_name)-2) ]; 104 $params['owner'] = $session->username; 105 $params['action'] = $put_action_type; 106 107 DAViCalAdapter::import($request->raw_post , $params); 108 } 109 ///////////////////////////////////////////////////////////////////////////// 110 94 111 write_resource( $dav_resource, $request->raw_post, $collection, $session->user_no, $etag, 95 112 $put_action_type, true, true ); 96 113
Note: See TracBrowser
for help on using the repository browser.