MINOR Documentation (from r104996)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112423 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-15 01:21:12 +00:00
parent 0a261fd479
commit a66c1590ba
2 changed files with 9 additions and 1 deletions

View File

@ -290,6 +290,9 @@ function getTempFolder($base = null) {
* classes. Classes will be loaded from any PHP file within the application.
* If your class contains an underscore, for example, Page_Controller, then the filename is
* expected to be the stuff before the underscore. In this case, Page.php.
*
* Class names are converted to lowercase for lookup to adhere to PHP's case-insensitive
* way of dealing with them.
*/
function __autoload($className) {
global $_CLASS_MANIFEST;
@ -299,7 +302,10 @@ function __autoload($className) {
}
/**
* Return the file where that class is stored
* Return the file where that class is stored.
*
* @param String $className Case-insensitive lookup.
* @return String
*/
function getClassFile($className) {
global $_CLASS_MANIFEST;

View File

@ -380,6 +380,8 @@ class ManifestBuilder {
foreach(self::$classArray as $class => $info) {
$allClasses['exists'][$class] = $class;
// Class names are converted to lowercase for lookup to adhere to PHP's case-insensitive
// way of dealing with them.
$allClasses['file'][strtolower($class)] = $info['file'];
}