Свойство | Тип | Описание | |
---|---|---|---|
$items | |||
$key | |||
$recursive | |||
$regex | |||
$storage |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
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 | ||
Результат | string |
public getIterator ( ) : Traversable | ||
Результат | Traversable | An instance of an object implementing Iterator or Traversable |
public getSize ( ) |
public getStorage ( ) : |
||
Результат |
public static isDirectory ( ) : boolean | ||
Результат | boolean |