Changeset 3754 for contrib/z-push/backend/BackendProxy.php
- Timestamp:
- 02/14/11 16:40:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/z-push/backend/BackendProxy.php
r3637 r3754 17 17 var $BackendContacts; 18 18 var $BackendCalendar; 19 var $folderid; 19 20 20 21 function __construct() … … 41 42 debugLog('BackendProxy::Setup('.$user.','.$devid.','.$protocolversion.')'); 42 43 global $BACKEND_EMAIL, $BACKEND_CONTACTS, $BACKEND_CALENDAR; 44 $this->_user = $user; 45 $this->_devid = $devid; 46 $this->_protocolversion = $protocolversion; 43 47 if (isset($BACKEND_EMAIL)) $this->BackendEmail->Setup($user, $devid, $protocolversion); 44 48 if (isset($BACKEND_CONTACTS)) $this->BackendContacts->Setup($user, $devid, $protocolversion); 45 49 if (isset($BACKEND_CALENDAR)) $this->BackendCalendar->Setup($user, $devid, $protocolversion); 46 50 return true; 51 } 52 53 function GetExporter($folderid = false) { 54 $this->folderid = $folderid; 55 return parent::GetExporter($folderid); 47 56 } 48 57 … … 147 156 } else return $this->BackendEmail->MoveMessage($folderid, $id, $newfolderid); 148 157 } 158 149 159 function AlterPing() { 150 //TODO: Verificar como deve ser tratado esse método 151 //if (isset($BACKEND_EMAIL)) return true; 152 return true; 160 if ($this->folderid == 'root') { 161 return false; 162 } else if ($this->folderid == 'calendar') { 163 return false; 164 } else return true; 153 165 } 166 154 167 function AlterPingChanges($folderid, &$syncstate) { 155 168 if ($folderid == 'root') {
Note: See TracChangeset
for help on using the changeset viewer.