application/modules/g/views/helpers/Image.php
public function getSourceUrlById($id) {
        $image = instance(new Model_Image)->fetchById($id);
        if (!$image) {
            throw new InvalidArgumentException(self::ERROR_IMAGE_NOT_FOUND);
        }
        return $this->getSourceUrl($image['filename']);
    }
public function getSourceUrlById($id) {
        $image = instance(new Model_Image)->fetchById($id);
        if (!$image) {
            throw new InvalidArgumentException(self::ERROR_IMAGE_NOT_FOUND);
        }
        return $this->getSourceUrl($image['filename']);
    }
public function getSourceUrlById ( $ id ) { $ image = instance ( new Model_Image ) -> fetchById ( $ id ) ; if ( ! $ image ) { throw new InvalidArgumentException ( self :: ERROR_IMAGE_NOT_FOUND ) ; } return $ this -> getSourceUrl ( $ image [ 'filename' ] ) ; }
Returns the url to the source file of an upload by id

@param int $id The id of the upload
@return string
Returns the url to the source file of an upload by id