foldercache = $foldercache; $this->changed = array(); $this->deleted = array(); $this->count = 0; return true; } function ImportFolderChange($folder) { // The HierarchyExporter exports all kinds of changes. // Frequently these changes are not relevant for the mobiles, // as something changes but the relevant displayname and parentid // stay the same. These changes will be dropped and not sent if (array_key_exists($folder->serverid, $this->foldercache) && $this->foldercache[$folder->serverid]->displayname == $folder->displayname && $this->foldercache[$folder->serverid]->parentid == $folder->parentid && $this->foldercache[$folder->serverid]->type == $folder->type ) { debugLog("Change for folder '".$folder->displayname."' will not be sent as modification is not relevant"); return true; } array_push($this->changed, $folder); $this->count++; // temporarily add/update the folder to the cache so changes are not sent twice $this->foldercache[$folder->serverid] = $folder; return true; } function ImportFolderDeletion($id) { array_push($this->deleted, $id); $this->count++; return true; } }; ?>