PHP Class Kraken\Filesystem\Filesystem

Inheritance: implements Kraken\Filesystem\FilesystemInterface
Afficher le fichier Open project: kraken-php/framework

Protected Properties

Свойство Type Description
$fs League\Flysystem\FilesystemInterface

Méthodes publiques

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

Méthodes protégées

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

Private Methods

Méthode 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 méthode

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

__destruct() public méthode

public __destruct ( )

append() public méthode

public append ( $path, $contents )

copyDir() public méthode

public copyDir ( $source, $destination )

copyFile() public méthode

public copyFile ( $source, $destination )

create() public méthode

public create ( $path, $contents )

createDir() public méthode

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

createFile() public méthode

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

eraseDir() public méthode

public eraseDir ( $dirname = '' )

eraseFile() public méthode

public eraseFile ( $path )

exists() public méthode

public exists ( $path )

getContents() public méthode

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

getDirectories() public méthode

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

getFiles() public méthode

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

getMimetype() public méthode

public getMimetype ( $path )

getSize() public méthode

public getSize ( $path )

getTimestamp() public méthode

public getTimestamp ( $path )

getType() public méthode

public getType ( $path )

getVisibility() public méthode

public getVisibility ( $path = '' )

isDir() public méthode

public isDir ( $path )

isFile() public méthode

public isFile ( $path )

isPrivate() public méthode

public isPrivate ( $path = '' )

isPublic() public méthode

public isPublic ( $path = '' )

move() public méthode

public move ( $source, $destination )

prepareConfig() protected méthode

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

prepend() public méthode

public prepend ( $path, $contents )

read() public méthode

public read ( $path )

removeDir() public méthode

public removeDir ( $dirname )

removeFile() public méthode

public removeFile ( $path )

req() public méthode

public req ( $path )

setPrivate() public méthode

public setPrivate ( $path = '' )

setPublic() public méthode

public setPublic ( $path = '' )

setVisibility() public méthode

public setVisibility ( $path, $visibility )

write() public méthode

public write ( $path, $contents )

Property Details

$fs protected_oe property

protected FilesystemInterface,League\Flysystem $fs
Résultat League\Flysystem\FilesystemInterface