Horde_Kolab_Storage_List_Query_List_Cache_Synchronization::updateAfterDeleteFolder PHP Method

updateAfterDeleteFolder() public method

Update the listener after deleting folder.
public updateAfterDeleteFolder ( string $folder ) : null
$folder string The path of the folder that has been deleted.
return null
    public function updateAfterDeleteFolder($folder)
    {
        if (!$this->_cache->hasNamespace()) {
            // Cache not synchronized yet.
            return;
        }
        $folder_list = $this->_cache->getFolders();
        $folder_list = array_diff($folder_list, array($folder));
        $annotations = $this->_cache->getFolderTypes();
        if (isset($annotations[$folder])) {
            unset($annotations[$folder]);
        }
        $namespace = unserialize($this->_cache->getNamespace());
        $this->_synchronize($namespace, $folder_list, $annotations);
    }

Usage Example

Beispiel #1
0
 /**
  * Update the listener after deleting folder.
  *
  * @param string $folder The path of the folder that has been deleted.
  *
  * @return NULL
  */
 public function updateAfterDeleteFolder($folder)
 {
     $this->_sync->updateAfterDeleteFolder($folder);
 }
All Usage Examples Of Horde_Kolab_Storage_List_Query_List_Cache_Synchronization::updateAfterDeleteFolder