MINOR Documentation

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@104996 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-05-17 03:22:07 +00:00 committed by Sam Minnee
parent a0d4b58908
commit a6d019bd76
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'];
}