source: trunk/expressoCalendar/docs/caldav-MOVE.php.diff @ 5411

Revision 5411, 939 bytes checked in by douglas, 12 years ago (diff)

Ticket #2434 - Leiame de instalação e configuração do módulo e DaviCal?

RevLine 
[5411]1--- caldav-MOVE.php.CP  2012-01-09 14:13:05.000000000 -0200
2+++ caldav-MOVE.php     2012-01-19 18:13:10.000000000 -0200
3@@ -108,6 +108,20 @@
4 $src_user_no = $src->GetProperty('user_no');
5 $dst_user_no = $dest->GetProperty('user_no');
6 
7+/////Expresso
8+if(strpos($request->user_agent, 'ExpressoLivre') === false) //Ignorar eventos do expresso
9+{
10+   $expresso = 'PATH_DO_SEU_EXPRESSO';
11+   include_once($expresso.'/prototype/api/controller.php');
12+   include_once($expresso.'/prototype/modules/calendar/interceptors/DAViCalAdapter.php');
13+
14+   $src_nameA = explode('/', $src_name);
15+   $dst_nameA = explode('/', $dst_name);
16+
17+   DAViCalAdapter::move($src_nameA[ (count($src_nameA)-2) ],$dst_nameA[ (count($dst_nameA)-2) ],$dest->GetProperty('username'));
18+}
19+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
20+
21 $cache = getCacheInstance();
22 $cachekeys = array();
23 
Note: See TracBrowser for help on using the repository browser.