PHP 트레잇 App\Traits\Uploadable

파일 보기 프로젝트 열기: ppy/osu-web

보호된 프로퍼티들

프로퍼티 타입 설명
$_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