KWeb  6.4
KWebFileDiscovery_class Class Reference
Inheritance diagram for KWebFileDiscovery_class:
FileDiscovery_dirs FileDiscovery IFileDiscovery

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)

Constructor & Destructor Documentation

KWebFileDiscovery_class::__construct ( id) [protected]

Reimplemented from FileDiscovery_dirs.


Member Function Documentation

KWebFileDiscovery_class::findFile ( name,
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.

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;
Parameters:
string$name
string$searchIn
array$params
$skipint|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.


The documentation for this class was generated from the following file: