protected function xautoload_RecursiveScan::_abc in X Autoload 7
1 call to xautoload_RecursiveScan::_abc()
File
- lib/
RecursiveScan.php, line 34
Class
- xautoload_RecursiveScan
- Scan directories for wildcard files[] instructions in a module's info file.
Code
protected function _abc($a, $b, $c = NULL) {
if (is_dir($a)) {
foreach (scandir($a) as $candidate) {
if ($this
->_validCand($candidate, $b)) {
if (!isset($c)) {
if ($b === '**') {
$this
->_abc("{$a}/{$candidate}", '**');
}
$this
->_file("{$a}/{$candidate}");
}
else {
if (!$this
->_check("{$a}/{$candidate}/{$c}")) {
$this
->_file("{$a}/{$candidate}/{$c}");
}
if ($b === '**') {
$this
->_abc("{$a}/{$candidate}", '**', $c);
}
}
}
}
}
}