PHP Class Yab\Quarx\Controllers\AssetController

Inheritance: extends QuarxController
显示文件 Open project: YABhq/Quarx

Protected Properties

Property Type Description
$mimeTypes

Public Methods

Method Description
asDownload ( string $encFileName, string $encRealFileName, Illuminate\Filesystem\Filesystem $fileSystem ) : Downlaod Provide file as download.
asPreview ( string $encFileName, Illuminate\Filesystem\Filesystem $fileSystem ) : Download Provide the File as a Public Preview.
asPublic ( string $encFileName, Illuminate\Filesystem\Filesystem $fileSystem ) : Download Provide the File as a Public Asset.
asset ( string $encPath, string $contentType, Illuminate\Filesystem\Filesystem $fileSystem ) : Provides Gets an asset.
getMimeType ( string $extension ) : string Get the mime type.

Method Details

asDownload() public method

Provide file as download.
public asDownload ( string $encFileName, string $encRealFileName, Illuminate\Filesystem\Filesystem $fileSystem ) : Downlaod
$encFileName string
$encRealFileName string
$fileSystem Illuminate\Filesystem\Filesystem
return Downlaod

asPreview() public method

Provide the File as a Public Preview.
public asPreview ( string $encFileName, Illuminate\Filesystem\Filesystem $fileSystem ) : Download
$encFileName string
$fileSystem Illuminate\Filesystem\Filesystem
return Download

asPublic() public method

Provide the File as a Public Asset.
public asPublic ( string $encFileName, Illuminate\Filesystem\Filesystem $fileSystem ) : Download
$encFileName string
$fileSystem Illuminate\Filesystem\Filesystem
return Download

asset() public method

Gets an asset.
public asset ( string $encPath, string $contentType, Illuminate\Filesystem\Filesystem $fileSystem ) : Provides
$encPath string
$contentType string
$fileSystem Illuminate\Filesystem\Filesystem
return Provides the valid

getMimeType() public method

Get the mime type.
public getMimeType ( string $extension ) : string
$extension string
return string

Property Details

$mimeTypes protected_oe property

protected $mimeTypes