Merge branch '2.0-form-helper' into 2.0

This commit is contained in:
Jose Lorenzo Rodriguez 2011-07-16 17:32:07 -04:30
commit 108505a6a0
10 changed files with 523 additions and 344 deletions

View file

@ -587,6 +587,19 @@ class App {
return false;
}
/**
* Returns the package name where a class was defined to be located at
*
* @param string $className name of the class to obtain the package name from
* @return string package name or null if not declared
*/
public static function location($className) {
if (!empty(self::$__classMap[$className])) {
return self::$__classMap[$className];
}
return null;
}
/**
* Finds classes based on $name or specific file(s) to search. Calling App::import() will
* not construct any classes contained in the files. It will only find and require() the file.