Method | Description | |
---|---|---|
__construct ( string $key, |
Constructor | |
count ( ) : integer | Count number of items in a directory | |
delete ( boolean $fireStorageEvents = true ) : boolean | Delete directory and all of it's contents recursively | |
filter ( $condition ) | Filter items in a directory using given regex or extension. | |
getKey ( ) : string | Get directory key | |
getStorage ( ) : |
Get Storage used by the DirectoryInterface instance |
public __construct ( string $key, |
||
$key | string | File key |
$storage | Storage to use | |
$treeStructure | boolean | (Optional) By default, Directory will only read the first level if items. If set to false, Directory will read all children items and list them as one-dimensional array. |
$filter | null | string | (Optional) Filter to use when reading directory items |
public filter ( $condition ) | ||
$condition |
public getStorage ( ) : |
||
return | Storage instance used for this directory |