PHP Class BookStack\Services\UploadService

Mostra file Open project: ssddanbrown/bookstack Class Usage Examples

Protected Properties

Property Type Description
$fileSystem Illuminate\Contracts\Filesystem\Factory
$storageInstance Illuminate\Contracts\Filesystem\Filesystem

Public Methods

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

Protected Methods

Method 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 method

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

getStorage() protected method

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

isFolderEmpty() protected method

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

isLocal() protected method

Check if using a local filesystem.
protected isLocal ( ) : boolean
return boolean

Property Details

$fileSystem protected_oe property

protected Factory,Illuminate\Contracts\Filesystem $fileSystem
return Illuminate\Contracts\Filesystem\Factory

$storageInstance protected_oe property

protected Filesystem,Illuminate\Contracts\Filesystem $storageInstance
return Illuminate\Contracts\Filesystem\Filesystem