Horde_Share_Base::getShareById PHP Method

getShareById() public method

Returns a Horde_Share_Object object corresponding to the given unique ID, with the details retrieved appropriately.
public getShareById ( string $cid ) : Horde_Share_Object
$cid string The id of the share to retrieve.
return Horde_Share_Object The requested share.
    public function getShareById($cid)
    {
        if (!isset($this->_shareMap[$cid])) {
            $share = $this->_getShareById($cid);
            $name = $share->getName();
            $this->_cache[$name] = $share;
            $this->_shareMap[$cid] = $name;
        }
        return $this->_cache[$this->_shareMap[$cid]];
    }