Horde_Share_Base::getShare PHP Method

getShare() public method

Returns a Horde_Share_Object object corresponding to the given share name, with the details retrieved appropriately.
public getShare ( string $name ) : Horde_Share_Object
$name string The name of the share to retrieve.
return Horde_Share_Object The requested share.
    public function getShare($name)
    {
        if (isset($this->_cache[$name])) {
            return $this->_cache[$name];
        }
        $share = $this->_getShare($name);
        $this->_shareMap[$share->getId()] = $name;
        $this->_cache[$name] = $share;
        return $share;
    }