Return a collections singleton.
public getCollectionsObject ( ) : Horde_ActiveSync_Collections | ||
return | Horde_ActiveSync_Collections |
/** * Imports a folder deletion from the PIM * * @param string $uid The folder uid * @param string $parent The folder id of the parent folder. */ public function importFolderDeletion($uid, $parent = Horde_ActiveSync::FOLDER_ROOT) { $collections = $this->_as->getCollectionsObject(); $parent_sid = !empty($parent) ? $collections->getBackendIdForFolderUid($parent) : $parent; $folderid = $collections->getBackendIdForFolderUid($uid); $change = array(); $change['id'] = $uid; $this->_as->driver->deleteFolder($folderid, $parent_sid); $this->_state->updateState(Horde_ActiveSync::CHANGE_TYPE_DELETE, $change, Horde_ActiveSync::CHANGE_ORIGIN_NA); }