function xautoload_ClassFinder_Prefix::registerPrefixDeepLocation in X Autoload 7.3
Same name and namespace in other branches
- 7.2 lib/ClassFinder/Prefix.php \xautoload_ClassFinder_Prefix::registerPrefixDeepLocation()
Register a filesystem location for a given class prefix.
Parameters
string $prefix: The prefix, e.g. "My_Prefix"
string $path: The deep filesystem location, e.g. "../lib/My/Prefix".
boolean $lazy_check: If TRUE, then we are not sure if the directory at $path actually exists. If during the process we find the directory to be nonexistent, we unregister the path.
1 call to xautoload_ClassFinder_Prefix::registerPrefixDeepLocation()
- xautoload_ClassFinder_Prefix::registerPrefixDeep in lib/
ClassFinder/ Prefix.php - Register a PEAR-style deep path for a given class prefix.
File
- lib/
ClassFinder/ Prefix.php, line 179
Class
Code
function registerPrefixDeepLocation($prefix, $path, $lazy_check = FALSE) {
$prefix_path_fragment = $this
->prefixPathFragment($prefix);
$this->prefixMap
->registerDeepPath($prefix_path_fragment, $path . '/', $lazy_check);
}