protected function xautoload_RecursiveScan::_check in X Autoload 7
2 calls to xautoload_RecursiveScan::_check()
File
- lib/
RecursiveScan.php, line 78
Class
- xautoload_RecursiveScan
- Scan directories for wildcard files[] instructions in a module's info file.
Code
protected function _check($path) {
if (preg_match('#^([^\\*]*)/(.*\\*.*)$#', $path, $m)) {
list(, $a, $b) = $m;
list($b, $c) = $result = explode('/', $b, 2) + array(
NULL,
NULL,
);
if ($b === '**' && isset($c)) {
$this
->_check("{$a}/{$c}");
}
$this
->_abc($a, $b, $c);
return TRUE;
}
else {
// Not a wildcard string
return FALSE;
}
}