PHP Интерфейс Plank\Mediable\SourceAdapters\SourceAdapterInterface

Defines methods needed by the MediaUploader
Автор: Sean Fraser ([email protected])
Показать файл Открыть проект

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

Метод Описание
contents ( ) : string Get the body of the file.
extension ( ) : string Get the extension of the file.
filename ( ) : string Get the name of the file.
getSource ( ) : mixed Get the underlying source.
mimeType ( ) : string Get the MIME type of the file.
path ( ) : string Get the absolute path to the file.
size ( ) : integer Determine the size of the file.
valid ( ) : boolean Check if the file can be transfered.

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

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

Get the body of the file.
public contents ( ) : string
Результат string

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

Get the extension of the file.
public extension ( ) : string
Результат string

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

Get the name of the file.
public filename ( ) : string
Результат string

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

Get the underlying source.
public getSource ( ) : mixed
Результат mixed

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

Get the MIME type of the file.
public mimeType ( ) : string
Результат string

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

Get the absolute path to the file.
public path ( ) : string
Результат string

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

Determine the size of the file.
public size ( ) : integer
Результат integer

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

Check if the file can be transfered.
public valid ( ) : boolean
Результат boolean