function xautoload_ClassFinder_Prefix::registerClass in X Autoload 7.2
Same name and namespace in other branches
- 7.3 lib/ClassFinder/Prefix.php \xautoload_ClassFinder_Prefix::registerClass()
Register a filepath for an individual class.
Parameters
string $class: The class, e.g. My_Class
string $file_path: The path, e.g. "../lib/My/Class.php".
1 call to xautoload_ClassFinder_Prefix::registerClass()
- 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 66
Class
Code
function registerClass($class, $file_path) {
$this->classes[$class] = $file_path;
}