Ignore:
Timestamp:
02/14/11 16:40:59 (13 years ago)
Author:
emersonfaria
Message:

Ticket #1551 - Correcoes de bugs e Melhorias de formatacao de email no Z-Push.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/z-push/backend/BackendProxy.php

    r3637 r3754  
    1717        var $BackendContacts; 
    1818        var $BackendCalendar; 
     19        var $folderid; 
    1920 
    2021        function __construct() 
     
    4142                debugLog('BackendProxy::Setup('.$user.','.$devid.','.$protocolversion.')'); 
    4243                global $BACKEND_EMAIL, $BACKEND_CONTACTS, $BACKEND_CALENDAR; 
     44                $this->_user = $user; 
     45                $this->_devid = $devid; 
     46                $this->_protocolversion = $protocolversion; 
    4347                if (isset($BACKEND_EMAIL)) $this->BackendEmail->Setup($user, $devid, $protocolversion); 
    4448                if (isset($BACKEND_CONTACTS)) $this->BackendContacts->Setup($user, $devid, $protocolversion); 
    4549                if (isset($BACKEND_CALENDAR)) $this->BackendCalendar->Setup($user, $devid, $protocolversion); 
    4650                return true; 
     51        } 
     52 
     53        function GetExporter($folderid = false) { 
     54                $this->folderid = $folderid; 
     55                return parent::GetExporter($folderid); 
    4756        } 
    4857 
     
    147156                } else return $this->BackendEmail->MoveMessage($folderid, $id, $newfolderid); 
    148157        } 
     158 
    149159        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; 
    153165        } 
     166 
    154167        function AlterPingChanges($folderid, &$syncstate) { 
    155168                if ($folderid == 'root') { 
Note: See TracChangeset for help on using the changeset viewer.