PHP Interface Kraken\Filesystem\FilesystemManagerInterface

Inheritance: extends Kraken\Filesystem\FilesystemInterface
ファイルを表示 Open project: kraken-php/framework Interface Usage Examples

Public Methods

Method Description
existsFilesystem ( string $prefix ) : boolean Check if there is a FilesystemInterface saved under $prefix key.
getFilesystem ( string $prefix ) : Kraken\Filesystem\FilesystemInterface Return FilesystemInterface saved under $prefix key or null if it does not exist.
mountFilesystem ( string $prefix, Kraken\Filesystem\FilesystemInterface $filesystem ) Mount FilesystemInterface $filesystem under $prefix key.
mountFilesystems ( Kraken\Filesystem\FilesystemInterface[] $filesystems ) Mount collection of FilesystemInterfaces.
unmountFilesystem ( string $prefix ) Unmount FilesystemInterface saved under $prefix key.

Method Details

existsFilesystem() public method

Check if there is a FilesystemInterface saved under $prefix key.
public existsFilesystem ( string $prefix ) : boolean
$prefix string
return boolean

getFilesystem() public method

Return FilesystemInterface saved under $prefix key or null if it does not exist.
public getFilesystem ( string $prefix ) : Kraken\Filesystem\FilesystemInterface
$prefix string
return Kraken\Filesystem\FilesystemInterface

mountFilesystem() public method

Mount FilesystemInterface $filesystem under $prefix key.
public mountFilesystem ( string $prefix, Kraken\Filesystem\FilesystemInterface $filesystem )
$prefix string
$filesystem Kraken\Filesystem\FilesystemInterface

mountFilesystems() public method

Mount collection of FilesystemInterfaces.
public mountFilesystems ( Kraken\Filesystem\FilesystemInterface[] $filesystems )
$filesystems Kraken\Filesystem\FilesystemInterface[]

unmountFilesystem() public method

Unmount FilesystemInterface saved under $prefix key.
public unmountFilesystem ( string $prefix )
$prefix string