Inventory::for()
Scans the directory and analyzes files, content, meta info and children
Inventory::for(string $dir, string $extension = 'txt', array|null $ignore = null, bool $multilang = false): array{children: list, files: array, template: string}
Parameters
| Name | Type | Default |
|---|---|---|
| $dirrequired | string |
no default value |
| $extension | string |
'txt'
|
| $ignore | arrayornull |
null
|
| $multilang | bool |
false
|
Return type
array{children: list<array>, files: array<string, array{filename: string, extension: string, root: string}>, template: string}