Class MOXMAN_Vfs_Local_FileSystem

InheritanceMOXMAN_Vfs_Local_FileSystem » MOXMAN_Vfs_FileSystem

Local file system implementation.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Constructs a new LocalFileSystem. MOXMAN_Vfs_Local_FileSystem
close() Closes the file system. MOXMAN_Vfs_FileSystem
getConfig() Config instance for the file system. MOXMAN_Vfs_FileSystem
getFile() Returns a MOXMAN_Vfs_IFile instance based on the specified path. MOXMAN_Vfs_Local_FileSystem
getFileConfigProvider() Returns the config provider instance. MOXMAN_Vfs_FileSystem
getFileMetaDataProvider() Returns the meta data provider instance. MOXMAN_Vfs_FileSystem
getFileUrlProvider() Returns the url provider instance. MOXMAN_Vfs_FileSystem
getFileUrlResolver() Returns the url resolver instance. MOXMAN_Vfs_FileSystem
getRootFile() Returns the a file object for the root of the file system. MOXMAN_Vfs_FileSystem
getRootName() Returns the name of the root for the file system. MOXMAN_Vfs_FileSystem
getRootPath() Returns the path of the root for the file system. MOXMAN_Vfs_FileSystem
getScheme() Returns the file system scheme for example "local". MOXMAN_Vfs_FileSystem
isCacheable() Returns the true/false if the file system can be cached or not. MOXMAN_Vfs_Local_FileSystem
setFileConfigProvider() Sets the config provider for the filesystem. MOXMAN_Vfs_FileSystem
setFileMetaDataProvider() Sets the meta data provider instance. MOXMAN_Vfs_FileSystem
setFileUrlProvider() Sets the url provider instance. MOXMAN_Vfs_FileSystem
setFileUrlResolver() Sets the url resolver instance. MOXMAN_Vfs_FileSystem
verifyPath() Verifies the input path against various exploits and throws exceptions if one is found. MOXMAN_Vfs_Local_FileSystem

Method Details

__construct() public method

Constructs a new LocalFileSystem.

public void __construct ( $scheme, MOXMAN_Util_Config $config, $root )
$scheme string

File scheme.

$config MOXMAN_Util_Config

Config instance for file system.

$root string

Root path for file system.

getFile() public method

Returns a MOXMAN_Vfs_IFile instance based on the specified path.

public MOXMAN_Vfs_IFile getFile ( $path )
$path string

Path of the file to retrive.

return MOXMAN_Vfs_IFile

File instance for the specified path.

isCacheable() public method

Returns the true/false if the file system can be cached or not.

public \True/false isCacheable ( )
return \True/false

If the file system is cacheable or not.

verifyPath() public method

Verifies the input path against various exploits and throws exceptions if one is found.

public void verifyPath ( $path, $fileType null )
$path String

Path to verify.

$fileType String

File type to verify path against. Values: dir or file.