You are here

function xautoload_InjectedAPI_hookXautoload::prefixDeep in X Autoload 7.2

Same name and namespace in other branches
  1. 7.5 legacy/lib/InjectedAPI/hookXautoload.php \xautoload_InjectedAPI_hookXautoload::prefixDeep()
  2. 7.3 lib/InjectedAPI/hookXautoload.php \xautoload_InjectedAPI_hookXautoload::prefixDeep()
  3. 7.4 legacy/lib/InjectedAPI/hookXautoload.php \xautoload_InjectedAPI_hookXautoload::prefixDeep()

Register an additional namespace for this module. Note: Drupal\<module name>\ is already registered for <module dir>/lib.

Parameters

string $namespace: The namespace

string $prefix_deep_dir: PSR-0 root dir. If $relative is TRUE, this is relative to the current extension dir. If $relative is FALSE, this is an absolute path.

boolean $relative: Whether or not the path is relative to the current extension dir.

File

lib/InjectedAPI/hookXautoload.php, line 88

Class

xautoload_InjectedAPI_hookXautoload
An instance of this class is passed around to implementations of hook_xautoload().

Code

function prefixDeep($prefix, $prefix_deep_dir = NULL, $relative = TRUE) {
  $prefix_root_dir = $this
    ->processDir($prefix_deep_dir, $relative);
  $this->finder
    ->registerPrefixDeep($prefix, $prefix_deep_dir);
}