PHP Class Kraken\Filesystem\FilesystemManager

Inheritance: implements Kraken\Filesystem\FilesystemManagerInterface
Afficher le fichier Open project: kraken-php/framework Class Usage Examples

Protected Properties

Свойство Type Description
$filesystems Kraken\Filesystem\FilesystemInterface[]

Méthodes publiques

Méthode Description
__construct ( Kraken\Filesystem\FilesystemInterface[] $filesystems = [] )
__destruct ( )
append ( $path, $contents )
copyDir ( $source, $destination )
copyFile ( $source, $destination )
create ( $path, $contents )
createDir ( $dirname, $visibility = Filesystem::VISIBILITY_DEFAULT )
createFile ( $path, $contents = '', $visibility = Filesystem::VISIBILITY_DEFAULT )
eraseDir ( $dirname = '' )
eraseFile ( $path )
exists ( $path )
existsFilesystem ( $prefix )
getContents ( $directory = '', $recursive = false, $filterPatterns = [] )
getDirectories ( $directory = '', $recursive = false, $filterPatterns = [] )
getFiles ( $directory = '', $recursive = false, $filterPatterns = [] )
getFilesystem ( $prefix )
getMimetype ( $path )
getSize ( $path )
getTimestamp ( $path )
getType ( $path )
getVisibility ( $path )
isDir ( $path )
isFile ( $path )
isPrivate ( $path = '' )
isPublic ( $path = '' )
mountFilesystem ( $prefix, Kraken\Filesystem\FilesystemInterface $filesystem )
mountFilesystems ( $filesystems )
move ( $source, $destination )
prepend ( $path, $contents )
read ( $path )
removeDir ( $dirname )
removeFile ( $path )
req ( $path )
setPrivate ( $path = '' )
setPublic ( $path = '' )
setVisibility ( $path, $visibility )
unmountFilesystem ( $prefix )
write ( $path, $contents )

Private Methods

Méthode Description
filterPrefix ( string $path ) : string[] Filter $path in search for $prefix, if its present explode $path into $prefix and $newPath.

Method Details

__construct() public méthode

public __construct ( Kraken\Filesystem\FilesystemInterface[] $filesystems = [] )
$filesystems Kraken\Filesystem\FilesystemInterface[]

__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 = Filesystem::VISIBILITY_DEFAULT )

createFile() public méthode

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

eraseDir() public méthode

public eraseDir ( $dirname = '' )

eraseFile() public méthode

public eraseFile ( $path )

exists() public méthode

public exists ( $path )

existsFilesystem() public méthode

public existsFilesystem ( $prefix )

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 = [] )

getFilesystem() public méthode

public getFilesystem ( $prefix )

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 = '' )

mountFilesystem() public méthode

public mountFilesystem ( $prefix, Kraken\Filesystem\FilesystemInterface $filesystem )
$filesystem Kraken\Filesystem\FilesystemInterface

mountFilesystems() public méthode

public mountFilesystems ( $filesystems )

move() public méthode

public move ( $source, $destination )

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 )

unmountFilesystem() public méthode

public unmountFilesystem ( $prefix )

write() public méthode

public write ( $path, $contents )

Property Details

$filesystems protected_oe property

protected FilesystemInterface[],Kraken\Filesystem $filesystems
Résultat Kraken\Filesystem\FilesystemInterface[]