PHP Class BookStack\Services\UploadService

Afficher le fichier Open project: ssddanbrown/bookstack Class Usage Examples

Protected Properties

Свойство Type Description
$fileSystem Illuminate\Contracts\Filesystem\Factory
$storageInstance Illuminate\Contracts\Filesystem\Filesystem

Méthodes publiques

Méthode Description
__construct ( Illuminate\Contracts\Filesystem\Factory $fileSystem ) FileService constructor.

Méthodes protégées

Méthode Description
getStorage ( ) : Illuminate\Contracts\Filesystem\Filesystem Get the storage that will be used for storing images.
isFolderEmpty ( $path ) : boolean Check whether or not a folder is empty.
isLocal ( ) : boolean Check if using a local filesystem.

Method Details

__construct() public méthode

FileService constructor.
public __construct ( Illuminate\Contracts\Filesystem\Factory $fileSystem )
$fileSystem Illuminate\Contracts\Filesystem\Factory

getStorage() protected méthode

Get the storage that will be used for storing images.
protected getStorage ( ) : Illuminate\Contracts\Filesystem\Filesystem
Résultat Illuminate\Contracts\Filesystem\Filesystem

isFolderEmpty() protected méthode

Check whether or not a folder is empty.
protected isFolderEmpty ( $path ) : boolean
$path
Résultat boolean

isLocal() protected méthode

Check if using a local filesystem.
protected isLocal ( ) : boolean
Résultat boolean

Property Details

$fileSystem protected_oe property

protected Factory,Illuminate\Contracts\Filesystem $fileSystem
Résultat Illuminate\Contracts\Filesystem\Factory

$storageInstance protected_oe property

protected Filesystem,Illuminate\Contracts\Filesystem $storageInstance
Résultat Illuminate\Contracts\Filesystem\Filesystem