You are here

protected static function AcquiaDAMStreamWrapper::getAssetByUri in Media: Acquia DAM 7

Load an asset by the Uri.

Parameters

string $uri: The Uri to use to look up an asset.

Return value

AcquiaDAM_Assets_Asset|false The asset or FALSE on failure.

2 calls to AcquiaDAMStreamWrapper::getAssetByUri()
AcquiaDAMStreamWrapper::getExternalUrl in includes/AcquiaDAMStreamWrapper.inc
Return the external Url.
AcquiaDAMStreamWrapper::stream_stat in includes/AcquiaDAMStreamWrapper.inc
Support for fstat().

File

includes/AcquiaDAMStreamWrapper.inc, line 234
Create an Acquia DAM Stream Wrapper class for the Media/Resource module.

Class

AcquiaDAMStreamWrapper
Provides a remote stream wrapper for Acquia DAM assets.

Code

protected static function getAssetByUri($uri) {
  $asset_id = static::getAssetIdFromUri($uri);
  return static::getAssetById($asset_id);
}