PHP Трейт App\Traits\Uploadable

Показать файл Открыть проект

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

Свойство Тип Описание
$_storage

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

Метод Описание
deleteFile ( )
deleteWithFile ( )
fileDir ( )
fileName ( )
filePath ( )
fileUrl ( )
getFileId ( )
getFileProperties ( ) Returns a hash with contents of at least 'hash' and 'ext' if there's image or otherwise null.
getFileRoot ( ) Returns root path of where the files are to be stored.
getMaxFileSize ( ) Returns maximum size of the file in bytes. Defaults to 1 MB.
setFileProperties ( $props ) Sets file properties. Either a hash of 'hash' and 'ext' or null.
storage ( )
storeFile ( $filePath, $fileExtension = '' )

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

deleteFile() публичный метод

public deleteFile ( )

deleteWithFile() публичный метод

public deleteWithFile ( )

fileDir() публичный метод

public fileDir ( )

fileName() публичный метод

public fileName ( )

filePath() публичный метод

public filePath ( )

fileUrl() публичный метод

public fileUrl ( )

getFileId() публичный метод

public getFileId ( )

getFileProperties() публичный метод

Assumes attributes 'hash' and 'ext' of the object by default.
public getFileProperties ( )

getFileRoot() абстрактный публичный метод

Returns root path of where the files are to be stored.
abstract public getFileRoot ( )

getMaxFileSize() публичный метод

Returns maximum size of the file in bytes. Defaults to 1 MB.
public getMaxFileSize ( )

setFileProperties() публичный метод

Assumes attributes 'hash' and 'ext' of the object by default.
public setFileProperties ( $props )

storage() публичный метод

public storage ( )

storeFile() публичный метод

public storeFile ( $filePath, $fileExtension = '' )

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

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

protected $_storage