framework/web/CAssetManager.php
protected function generatePath($file,$hashByName=false)
	{
		if (is_file($file))
			$pathForHashing=$hashByName ? dirname($file) : dirname($file).filemtime($file);
		else
			$pathForHashing=$hashByName ? $file : $file.filemtime($file);

		return $this->hash($pathForHashing);
	}
protected function generatePath($file,$hashByName=false)
	{
		if (is_file($file))
			$pathForHashing=$hashByName ? dirname($file) : dirname($file).filemtime($file);
		else
			$pathForHashing=$hashByName ? $file : $file.filemtime($file);

		return $this->hash($pathForHashing);
	}
protected function generatePath ( $ file , $ hashByName = false ) { if ( is_file ( $ file ) ) $ pathForHashing = $ hashByName ? dirname ( $ file ) : dirname ( $ file ) . filemtime ( $ file ) ; else $ pathForHashing = $ hashByName ? $ file : $ file . filemtime ( $ file ) ; return $ this -> hash ( $ pathForHashing ) ; }
Generates path segments relative to basePath.
@param string $file for which public path will be created.
@param bool $hashByName whether the published directory should be named as the hashed basename.
@return string path segments without basePath.
@since 1.1.13
Generates path segments relative to basePath .