Horde_Kolab_Storage_Data_Base::getBackendId PHP Method

getBackendId() public method

Return the backend ID for the given object ID.
public getBackendId ( $object_id ) : string
return string The backend ID for the object.
    public function getBackendId($object_id)
    {
        $by_obid = $this->fetch($this->getStamp()->ids());
        foreach ($by_obid as $obid => $object) {
            if ($object['uid'] == $object_id) {
                return $obid;
            }
        }
        throw new Horde_Kolab_Storage_Exception(sprintf('Object ID %s does not exist!', $object_id));
    }