KWeb
6.4
|
Public Member Functions | |
findFile ($class, $searchIn=null, $params=null, $skip=0) | |
Default implementation will return the $name back if it's prefixed with '/' (so that it looks like a full path), and will check for any existing overrides. | |
Protected Member Functions | |
__construct ($id) |
KWebFileDiscovery_class::__construct | ( | $ | id | ) | [protected] |
Reimplemented from FileDiscovery_dirs.
Default implementation will return the $name back if it's prefixed with '/' (so that it looks like a full path), and will check for any existing overrides.
During search, most implementations will log candidates and valid paths in $this->candidates and $this->found, but only if these values are initialized to empty arrays beforehand.
To get all the matching files:
$fd->found = array(); $fd->findFile('FooBar', null, null, 0x7fff); var_dump($fd->found); $fd->found = null;
string | $name | |
string | $searchIn | |
array | $params | |
$skip | int|string How many potential entries to skip (both valid and invalid), before matching... You can pass a filepath, to find candidates after this match. |
Reimplemented from FileDiscovery_dirs.