public static function displayFilename (FtpFile $file, FtpWidget $context) {
		if ($context->allowNavigation && self::isDir($file)) {
			$dir = $context->baseFolder."/".$file->filename;
			if ($context->baseFolder == "/") {
				$dir = "/".$file->filename;
			}
			if ($file->filename == '..') {
				$dir = str_replace('\\', '/', dirname($context->baseFolder));
			}
			$arr = array_merge([""], $_GET, [$context->navKey => $dir]);
			return \yii\helpers\Html::a($file->filename, $arr);
		} else {
			return $file->filename;
		}
	}
public static function displayFilename (FtpFile $file, FtpWidget $context) {
		if ($context->allowNavigation && self::isDir($file)) {
			$dir = $context->baseFolder."/".$file->filename;
			if ($context->baseFolder == "/") {
				$dir = "/".$file->filename;
			}
			if ($file->filename == '..') {
				$dir = str_replace('\\', '/', dirname($context->baseFolder));
			}
			$arr = array_merge([""], $_GET, [$context->navKey => $dir]);
			return \yii\helpers\Html::a($file->filename, $arr);
		} else {
			return $file->filename;
		}
	}
public static function displayFilename ( FtpFile $ file , FtpWidget $ context ) { if ( $ context -> allowNavigation && self :: isDir ( $ file ) ) { $ dir = $ context -> baseFolder . "/" . $ file -> filename ; if ( $ context -> baseFolder == "/" ) { $ dir = "/" . $ file -> filename ; } if ( $ file -> filename == '..' ) { $ dir = str_replace ( '\\' , '/' , dirname ( $ context -> baseFolder ) ) ; } $ arr = array_merge ( [ "" ] , $ _GET , [ $ context -> navKey => $ dir ] ) ; return \ yii \ helpers \ Html :: a ( $ file -> filename , $ arr ) ; } else { return $ file -> filename ; } }
Build filename for FtpWidget.

@param FtpFile $file Current {@link FtpFile}
@param FtpWidget $context Current displayable widget

@return string Displayed filename
Build filename for FtpWidget .