/** * Update the listener after renaming a folder. * * @param string $old The old path of the folder. * @param string $new The new path of the folder. * * @return NULL */ public function updateAfterRenameFolder($old, $new) { if (isset($this->_active_sync[$old])) { $this->_active_sync[$new] = $this->_active_sync[$old]; unset($this->_active_sync[$old]); $this->_list_cache->setQuery(self::ACTIVE_SYNC, $this->_active_sync); } $this->_list_cache->save(); }
/** * Remove outdated folder data from the cache. * * @param string $folder The folder name. * * @return NULL */ private function _purgeFolder($folder) { unset($this->_acl[$folder]); unset($this->_my_rights[$folder]); unset($this->_all_rights[$folder]); $this->_list_cache->setQuery(self::ACL, $this->_acl); $this->_list_cache->setQuery(self::MYRIGHTS, $this->_my_rights); $this->_list_cache->setQuery(self::MYRIGHTS, $this->_all_rights); $this->_list_cache->save(); }
/** * Update the listener after renaming a folder. * * @param string $old The old path of the folder. * @param string $new The new path of the folder. * * @return NULL */ public function updateAfterRenameFolder($old, $new) { if (isset($this->_descriptions[$old])) { $this->_descriptions[$new] = $this->_descriptions[$old]; unset($this->_descriptions[$old]); $this->_list_cache->setQuery(self::DESCRIPTIONS, $this->_descriptions); } if (isset($this->_parameters[$old])) { $this->_parameters[$new] = $this->_parameters[$old]; unset($this->_parameters[$old]); $this->_list_cache->setLongTerm(self::PARAMETERS, $this->_parameters); } $this->_list_cache->save(); }