PHP Класс Airship\Cabin\Hull\Landing\PublicFiles

Наследование: extends LandingGear
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$cabin string
$files Airship\Cabin\Hull\Blueprint\PublicFiles
$viewableMimeTypes string[]

Открытые методы

Метод Описание
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)

Защищенные методы

Метод Описание
isViewable ( string $mimeHeader ) : boolean

Описание методов

airshipLand() публичный Метод

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

download() публичный Метод

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 isViewable ( string $mimeHeader ) : boolean
$mimeHeader string
Результат boolean

Описание свойств

$cabin защищенное свойство

protected string $cabin
Результат string

$files защищенное свойство

protected PublicFiles,Airship\Cabin\Hull\Blueprint $files
Результат Airship\Cabin\Hull\Blueprint\PublicFiles

$viewableMimeTypes защищенное свойство

protected string[] $viewableMimeTypes
Результат string[]