mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-05 11:02:40 +00:00
Merge branch '2.0-form-helper' into 2.0
This commit is contained in:
commit
108505a6a0
10 changed files with 523 additions and 344 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue