PHP Class Kraken\Filesystem\Filesystem

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

Protected Properties

Property Type Description
$fs League\Flysystem\FilesystemInterface

Public Methods

Method Description
__construct ( League\Flysystem\AdapterInterface $adapter )
__destruct ( )
append ( $path, $contents )
copyDir ( $source, $destination )
copyFile ( $source, $destination )
create ( $path, $contents )
createDir ( $dirname, $visibility = self::VISIBILITY_DEFAULT )
createFile ( $path, $contents = '', $visibility = self::VISIBILITY_DEFAULT )
eraseDir ( $dirname = '' )
eraseFile ( $path )
exists ( $path )
getContents ( $directory = '', $recursive = false, $filterPatterns = [] )
getDirectories ( $directory = '', $recursive = false, $filterPatterns = [] )
getFiles ( $directory = '', $recursive = false, $filterPatterns = [] )
getMimetype ( $path )
getSize ( $path )
getTimestamp ( $path )
getType ( $path )
getVisibility ( $path = '' )
isDir ( $path )
isFile ( $path )
isPrivate ( $path = '' )
isPublic ( $path = '' )
move ( $source, $destination )
prepend ( $path, $contents )
read ( $path )
removeDir ( $dirname )
removeFile ( $path )
req ( $path )
setPrivate ( $path = '' )
setPublic ( $path = '' )
setVisibility ( $path, $visibility )
write ( $path, $contents )

Protected Methods

Method Description
prepareConfig ( $visibility ) : string[] Return array config with visibility setting.

Private Methods

Method Description
ensuredCopyDir ( string $source, string $destination ) Copy a directory.
ensuredEraseDir ( string $dirname ) Erase a directory.
ensuredRemoveDir ( string $dirname ) Remove a directory.
match ( string $pattern, string $name ) : boolean Try to match name using specified pattern.

Method Details

__construct() public method

public __construct ( League\Flysystem\AdapterInterface $adapter )
$adapter League\Flysystem\AdapterInterface

__destruct() public method

public __destruct ( )

append() public method

public append ( $path, $contents )

copyDir() public method

public copyDir ( $source, $destination )

copyFile() public method

public copyFile ( $source, $destination )

create() public method

public create ( $path, $contents )

createDir() public method

public createDir ( $dirname, $visibility = self::VISIBILITY_DEFAULT )

createFile() public method

public createFile ( $path, $contents = '', $visibility = self::VISIBILITY_DEFAULT )

eraseDir() public method

public eraseDir ( $dirname = '' )

eraseFile() public method

public eraseFile ( $path )

exists() public method

public exists ( $path )

getContents() public method

public getContents ( $directory = '', $recursive = false, $filterPatterns = [] )

getDirectories() public method

public getDirectories ( $directory = '', $recursive = false, $filterPatterns = [] )

getFiles() public method

public getFiles ( $directory = '', $recursive = false, $filterPatterns = [] )

getMimetype() public method

public getMimetype ( $path )

getSize() public method

public getSize ( $path )

getTimestamp() public method

public getTimestamp ( $path )

getType() public method

public getType ( $path )

getVisibility() public method

public getVisibility ( $path = '' )

isDir() public method

public isDir ( $path )

isFile() public method

public isFile ( $path )

isPrivate() public method

public isPrivate ( $path = '' )

isPublic() public method

public isPublic ( $path = '' )

move() public method

public move ( $source, $destination )

prepareConfig() protected method

Return array config with visibility setting.
protected prepareConfig ( $visibility ) : string[]
$visibility
return string[]

prepend() public method

public prepend ( $path, $contents )

read() public method

public read ( $path )

removeDir() public method

public removeDir ( $dirname )

removeFile() public method

public removeFile ( $path )

req() public method

public req ( $path )

setPrivate() public method

public setPrivate ( $path = '' )

setPublic() public method

public setPublic ( $path = '' )

setVisibility() public method

public setVisibility ( $path, $visibility )

write() public method

public write ( $path, $contents )

Property Details

$fs protected_oe property

protected FilesystemInterface,League\Flysystem $fs
return League\Flysystem\FilesystemInterface