Свойство | Type | Description | |
---|---|---|---|
$items | |||
$key | |||
$recursive | |||
$regex | |||
$storage |
Méthode | Description | |
---|---|---|
__construct ( string $key, |
Constructor | |
count ( ) : integer | Count number of items in a directory | |
delete ( $fireStorageEvents = true ) | ||
filter ( string $condition ) : |
Filter items in a directory using given regex or extension. | |
getAbsolutePath ( ) : string | Get absolute folder path | |
getIterator ( ) : Traversable |
(PHP 5 >= 5.0.0) Retrieve an external iterator |
|
getKey ( ) : string | Get directory key | |
getSize ( ) | Get directory size | |
getStorage ( ) : |
Get Storage used by the DirectoryInterface instance | |
isDirectory ( ) : boolean | Checks if file is a directory. |
Méthode | Description | |
---|---|---|
loadItems ( ) | ||
parseFilter ( $filter ) |
public __construct ( string $key, |
||
$key | string | File key |
$storage | Storage to use | |
$recursive | boolean | (Optional) By default, Directory will only read the first level if items. If set to true, 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 getAbsolutePath ( ) : string | ||
Résultat | string |
public getIterator ( ) : Traversable | ||
Résultat | Traversable | An instance of an object implementing Iterator or Traversable |
public getSize ( ) |
public getStorage ( ) : |
||
Résultat |
public static isDirectory ( ) : boolean | ||
Résultat | boolean |