Horde_Share_Base::removeShare PHP Method

removeShare() public method

Removes a share from the shares system permanently.
public removeShare ( Horde_Share_Object $share )
$share Horde_Share_Object The share to remove.
    public function removeShare(Horde_Share_Object $share)
    {
        // Run the results through the callback, if configured.
        $this->runCallback('remove', array($share));
        /* Remove share from the caches. */
        $id = $share->getId();
        unset($this->_shareMap[$id]);
        unset($this->_cache[$share->getName()]);
        /* Reset caches that depend on unknown criteria. */
        $this->expireListCache();
        $this->_removeShare($share);
    }