PHP Interface Plank\Mediable\SourceAdapters\SourceAdapterInterface

Defines methods needed by the MediaUploader
Author: Sean Fraser ([email protected])
Show file Open project: plank/laravel-mediable

Public Methods

Method Description
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.

Method Details

contents() public method

Get the body of the file.
public contents ( ) : string
return string

extension() public method

Get the extension of the file.
public extension ( ) : string
return string

filename() public method

Get the name of the file.
public filename ( ) : string
return string

getSource() public method

Get the underlying source.
public getSource ( ) : mixed
return mixed

mimeType() public method

Get the MIME type of the file.
public mimeType ( ) : string
return string

path() public method

Get the absolute path to the file.
public path ( ) : string
return string

size() public method

Determine the size of the file.
public size ( ) : integer
return integer

valid() public method

Check if the file can be transfered.
public valid ( ) : boolean
return boolean