PHP Trait App\Traits\Uploadable

Afficher le fichier Open project: ppy/osu-web

Protected Properties

Свойство Type Description
$_storage

Méthodes publiques

Méthode Description
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 = '' )

Method Details

deleteFile() public méthode

public deleteFile ( )

deleteWithFile() public méthode

public deleteWithFile ( )

fileDir() public méthode

public fileDir ( )

fileName() public méthode

public fileName ( )

filePath() public méthode

public filePath ( )

fileUrl() public méthode

public fileUrl ( )

getFileId() public méthode

public getFileId ( )

getFileProperties() public méthode

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

getFileRoot() abstract public méthode

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

getMaxFileSize() public méthode

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

setFileProperties() public méthode

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

storage() public méthode

public storage ( )

storeFile() public méthode

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

Property Details

$_storage protected_oe property

protected $_storage