class Dir implements Iterator, Countable (View source)

Methods

void
__construct(string $path)

Return items from a folder

static Dir
root()

Return items from root project folder (probably, will depend on the setting of the INPHINIT_ROOT constant)

static Dir
storage()

Return items from storage folder

static Dir
application()

Return items from application folder

Details

void __construct(string $path)

Return items from a folder

Parameters

string $path

Return Value

void

Exceptions

Exception

static Dir root()

Return items from root project folder (probably, will depend on the setting of the INPHINIT_ROOT constant)

Return Value

Dir

static Dir storage()

Return items from storage folder

Return Value

Dir

static Dir application()

Return items from application folder

Return Value

Dir