src/GenericFile.php
public function makeUrlToUploadedFile($model, $path_pattern = null, array $model_map = array(), $domain = null)
	{
		$pattern = $path_pattern
			?: $this->getConfig('http.path_pattern', '');

		if (is_null($domain))
		{
			$domain = $this->getConfig('http.domain', '');
		}

		$path = $this->interpolator->resolvePath($pattern, $model, $model_map)->getResult();

		$path = rtrim($domain, '/') . '/' . ltrim($path, '/');

		return $path;
	}
public function makeUrlToUploadedFile($model, $path_pattern = null, array $model_map = array(), $domain = null)
	{
		$pattern = $path_pattern
			?: $this->getConfig('http.path_pattern', '');

		if (is_null($domain))
		{
			$domain = $this->getConfig('http.domain', '');
		}

		$path = $this->interpolator->resolvePath($pattern, $model, $model_map)->getResult();

		$path = rtrim($domain, '/') . '/' . ltrim($path, '/');

		return $path;
	}
public function makeUrlToUploadedFile ( $ model , $ path_pattern = null , array $ model_map = array ( ) , $ domain = null ) { $ pattern = $ path_pattern ? : $ this -> getConfig ( 'http.path_pattern' , '' ) ; if ( is_null ( $ domain ) ) { $ domain = $ this -> getConfig ( 'http.domain' , '' ) ; } $ path = $ this -> interpolator -> resolvePath ( $ pattern , $ model , $ model_map ) -> getResult ( ) ; $ path = rtrim ( $ domain , '/' ) . '/' . ltrim ( $ path , '/' ) ; return $ path ; }
Make url to uploaded file

@param array|object $model
@param string|null  $path_pattern
@param array        $model_map

@return string
Make url to uploaded file