mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
a0d4b58908
commit
a6d019bd76
@ -290,6 +290,9 @@ function getTempFolder($base = null) {
|
|||||||
* classes. Classes will be loaded from any PHP file within the application.
|
* 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
|
* 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.
|
* 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) {
|
function __autoload($className) {
|
||||||
global $_CLASS_MANIFEST;
|
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) {
|
function getClassFile($className) {
|
||||||
global $_CLASS_MANIFEST;
|
global $_CLASS_MANIFEST;
|
||||||
|
@ -380,6 +380,8 @@ class ManifestBuilder {
|
|||||||
|
|
||||||
foreach(self::$classArray as $class => $info) {
|
foreach(self::$classArray as $class => $info) {
|
||||||
$allClasses['exists'][$class] = $class;
|
$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'];
|
$allClasses['file'][strtolower($class)] = $info['file'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user