You are here

function xautoload_ClassFinder_Prefix::registerPrefixDeepLocation in X Autoload 7.2

Same name and namespace in other branches
  1. 7.3 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.

2 calls 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.
xautoload_ClassFinder_Prefix::registerPrefixRoot in lib/ClassFinder/Prefix.php
Register a PEAR-style root path for a given class prefix.

File

lib/ClassFinder/Prefix.php, line 82

Class

xautoload_ClassFinder_Prefix

Code

function registerPrefixDeepLocation($prefix, $path, $lazy_check = FALSE) {
  $path_prefix_symbolic = strlen($prefix) ? str_replace('_', DIRECTORY_SEPARATOR, $prefix . '_') : '';
  $this->prefixMap
    ->registerDeepPath($path_prefix_symbolic, $path . '/', $lazy_check);
}