Dir
class Dir implements Iterator, Countable (View source)
Methods
Return items from a folder
Return items from root project folder (probably, will depend on the setting
of the INPHINIT_ROOT constant)
Return items from storage folder
Return items from application folder
Resets the directory stream to the beginning of the directory
Get current file with type, path and filename The entries are returned in the order in which they are stored by the filesystem.
Get current position in handle
Move forward to next file
Check if pointer is valid
Count files in folder, can br used by count($instance) funciton
No description
Details
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
void
rewind()
Resets the directory stream to the beginning of the directory
stdClass|null
current()
Get current file with type, path and filename The entries are returned in the order in which they are stored by the filesystem.
int
key()
Get current position in handle
void
next()
Move forward to next file
bool
valid()
Check if pointer is valid
int
count()
Count files in folder, can br used by count($instance) funciton
__destruct()
No description