PHP Class Airship\Cabin\Hull\Landing\PublicFiles

Inheritance: extends LandingGear
Show file Open project: paragonie/airship

Protected Properties

Property Type Description
$cabin string
$files Airship\Cabin\Hull\Blueprint\PublicFiles
$viewableMimeTypes string[]

Public Methods

Method Description
airshipLand ( ) This function is called after the dependencies have been injected by AutoPilot. Think of it as a user-land constructor.
download ( string $path, string $default = 'text/plain' ) Download a file (assuming we are allowed to)

Protected Methods

Method Description
isViewable ( string $mimeHeader ) : boolean

Method Details

airshipLand() public method

This function is called after the dependencies have been injected by AutoPilot. Think of it as a user-land constructor.
public airshipLand ( )

download() public method

Download a file (assuming we are allowed to)
public download ( string $path, string $default = 'text/plain' )
$path string
$default string Default MIME type

isViewable() protected method

protected isViewable ( string $mimeHeader ) : boolean
$mimeHeader string
return boolean

Property Details

$cabin protected property

protected string $cabin
return string

$files protected property

protected PublicFiles,Airship\Cabin\Hull\Blueprint $files
return Airship\Cabin\Hull\Blueprint\PublicFiles

$viewableMimeTypes protected property

protected string[] $viewableMimeTypes
return string[]