Documentation

LazyDirectoryProvider
in package
implements DirectoryProvider

FinalYes

Allows you to lazily provide directories for use with VirtualDirectoryListAdapter

Table of Contents

Interfaces

DirectoryProvider

Properties

$directories  : ArrayObject<string, DirectoryAttributes>|null
$loader  : Closure

Methods

__construct()  : mixed
getIterator()  : Traversable
hasTopLevelDirectory()  : bool
getDirectories()  : ArrayObject<string, DirectoryAttributes>

Properties

Methods

__construct()

public __construct(callable(): iterable<string, DirectoryAttributes$loader[, bool $loadImmediately = false ]) : mixed
Parameters
$loader : callable(): iterable<string, DirectoryAttributes>
$loadImmediately : bool = false

when provided will immediately attempt to call the loader, this can be used for testing to get cleaner traces.

hasTopLevelDirectory()

public hasTopLevelDirectory(string $name) : bool
Parameters
$name : string
Return values
bool

getDirectories()

private getDirectories() : ArrayObject<string, DirectoryAttributes>
Return values
ArrayObject<string, DirectoryAttributes>

        
On this page

Search results