public function search($type, $filename = '', $return = 'relative')
{
$matches = array();
foreach ($this->elements as $location) {
if (!$location instanceof PathFinder_Location) {
continue;
}
$path = $location->locate($type, $filename, $return);
if (is_string($path)) {
// file found!
$matches[] = $path;
}
}
return $matches;
}