public function getAssetContent($assetPath)
    {
        $mediaAsset = $this->getItemMediaResolver()->resolve($assetPath);
        $mediaSource = $mediaAsset->getMediaSource();
        $srcPath = $mediaSource->download($mediaAsset->getMediaIdentifier());
        return file_get_contents($srcPath);
    }
public function getAssetContent($assetPath)
    {
        $mediaAsset = $this->getItemMediaResolver()->resolve($assetPath);
        $mediaSource = $mediaAsset->getMediaSource();
        $srcPath = $mediaSource->download($mediaAsset->getMediaIdentifier());
        return file_get_contents($srcPath);
    }
public function getAssetContent ( $ assetPath ) { $ mediaAsset = $ this -> getItemMediaResolver ( ) -> resolve ( $ assetPath ) ; $ mediaSource = $ mediaAsset -> getMediaSource ( ) ; $ srcPath = $ mediaSource -> download ( $ mediaAsset -> getMediaIdentifier ( ) ) ; return file_get_contents ( $ srcPath ) ; }
Get the content of an asset.

@param string $assetPath the asset path
@return null|string the asset content or null if not stored locally
@throws common_Exception if the resource cannot be retrieved
Get the content of an asset .