source:
branches/2.4/expressoCalendar/docs/caldav-DELETE.php.diff
@
6754
Revision 6754, 1.4 KB checked in by niltonneto, 12 years ago (diff) |
---|
-
caldav-DELETE.php
old new 81 81 $myLock = $cache->acquireLock('collection-'.$dav_resource->parent_path()); 82 82 83 83 $params = array( ':dav_id' => $dav_resource->resource_id() ); 84 85 /////Expresso 86 if(strpos($request->user_agent, 'ExpressoLivre') === false) //Ignorar eventos do expresso 87 { 88 $expresso = 'PATH_DO_SEU_EXPRESSO'; 89 include_once($expresso.'/prototype/api/controller.php'); 90 include_once($expresso.'/prototype/modules/calendar/interceptors/DAViCalAdapter.php'); 91 92 $dav_name = explode('/', $dav_resource->GetProperty('dav_name')); 93 94 DAViCalAdapter::delete($dav_resource->GetProperty('caldav_data') ,array('owner' => $dav_resource->GetProperty('username') , 'calendarName' => $dav_name[ (count($dav_name)-3) ]) .'/'. $dav_name[ (count($dav_name)-2) ]); 95 } 96 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 97 84 98 if ( $qry->QDo("SELECT write_sync_change(collection_id, 404, caldav_data.dav_name) FROM caldav_data WHERE dav_id = :dav_id", $params ) 85 99 && $qry->QDo("DELETE FROM property WHERE dav_name = (SELECT dav_name FROM caldav_data WHERE dav_id = :dav_id)", $params ) 86 100 && $qry->QDo("DELETE FROM locks WHERE dav_name = (SELECT dav_name FROM caldav_data WHERE dav_id = :dav_id)", $params )
Note: See TracBrowser
for help on using the repository browser.