You are here

function xautoload_ClassFinder_Helper_Map::registerDeepPath in X Autoload 7.2

Same name and namespace in other branches
  1. 7.3 lib/ClassFinder/Helper/Map.php \xautoload_ClassFinder_Helper_Map::registerDeepPath()

If a class file would be in $psr0_root . '/' . $first_part . $second_part then instead, we look in $deep_path . $second_part

Parameters

string $first_part: The would-be namespace path relative to PSR-0 root. That is, the namespace with '\\' replaced by DIRECTORY_SEPARATOR.

string $path: The filesystem location of the (PSR-0) subfolder for the given namespace.

boolean $lazy_check: If TRUE, then it is yet unknown whether the directory exists. If during the process we find that it does not exist, we unregister it.

1 call to xautoload_ClassFinder_Helper_Map::registerDeepPath()
xautoload_ClassFinder_Helper_Map::registerRootPath in lib/ClassFinder/Helper/Map.php
If a class file would be in $psr0_root . '/' . $first_part . $second_part then instead, we look in $root_path . '/' . $first_part . $second_part

File

lib/ClassFinder/Helper/Map.php, line 76

Class

xautoload_ClassFinder_Helper_Map
Helper class for the class finder. This is not part of ClassFinder, because we want to use the same logic for namespaces (PSR-0) and prefixes (PEAR).

Code

function registerDeepPath($first_part, $deep_path, $lazy_check = TRUE) {
  $this->nsPaths[$first_part][$deep_path] = $lazy_check;
}