function xautoload_RegistryWildcard_RecursiveScan::check in X Autoload 7.3
Same name and namespace in other branches
- 7.2 lib/RegistryWildcard/RecursiveScan.php \xautoload_RegistryWildcard_RecursiveScan::check()
Process one registry entry.
Parameters
string $path: File path or wildcard string.
array $value: Info array registered for the path or wildcard string. E.g. array('module' => 'field', 'weight' => 0). All new entries for a wildcard will receive the same info array.
File
- lib/
RegistryWildcard/ RecursiveScan.php, line 45
Class
- xautoload_RegistryWildcard_RecursiveScan
- Scan directories for wildcard files[] instructions in a module's info file.
Code
function check($path, $value) {
$this->value = $value;
if (preg_match('#^([^\\*]*)/(.*\\*.*)$#', $path, $m)) {
list(, $base, $wildcard) = $m;
$this
->scanDirectory($base, $wildcard);
unset($this->filesInRegistry[$path]);
}
}