Class MOXMAN_Vfs_CombinedFileFilter
Inheritance | MOXMAN_Vfs_CombinedFileFilter |
---|---|
Implements | MOXMAN_Vfs_IFileFilter |
This class combines multiple filters into one filer.
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | Constructs a new combined filer. | MOXMAN_Vfs_CombinedFileFilter |
accept() | Returns true or false if the file is accepted or not by checking accept on all added filters. | MOXMAN_Vfs_CombinedFileFilter |
addFilter() | Adds a new filter to check. | MOXMAN_Vfs_CombinedFileFilter |
createFromConfig() | Creates a config instance from the specified config. It will use various config options for setting up a filter instance. This is a helper function. | MOXMAN_Vfs_CombinedFileFilter |
getFilters() | MOXMAN_Vfs_CombinedFileFilter | |
isEmpty() | Returns true/false if the filter is empty or not. | MOXMAN_Vfs_CombinedFileFilter |
Method Details
Constructs a new combined filer.
public void __construct ( ) |
Returns true or false if the file is accepted or not by checking accept on all added filters.
public Boolean accept ( MOXMAN_Vfs_IFile $file, $isFile = true ) | ||
$file | MOXMAN_Vfs_IFile | File to grant or deny. |
$isFile | Boolean | Default state if the filter is on an non existing file. |
return | Boolean | True/false if the file is accepted or not. |
---|
Adds a new filter to check.
public void addFilter ( MOXMAN_Vfs_IFileFilter $fileFilter ) | ||
$fileFilter | MOXMAN_Vfs_IFileFilter | Filter to add. |
Creates a config instance from the specified config. It will use various config options for setting up a filter instance. This is a helper function.
public static MOXMAN_Vfs_CombinedFileFilter createFromConfig ( MOXMAN_Util_Config $config, $prefix ) | ||
$config | MOXMAN_Util_Config | Config instance to get settings from. |
$prefix | String | Prefix of subfilter for example "edit" |
return | MOXMAN_Vfs_CombinedFileFilter | Basic file filter instance based on config. |
---|
public void getFilters ( ) |
Returns true/false if the filter is empty or not.
public boolean isEmpty ( ) | ||
return | boolean | True/false if the filter is empty or not. |
---|