MediaWiki  REL1_22
AutoLoader Class Reference

List of all members.

Static Public Member Functions

static autoload ($className)
 autoload - take a class name and attempt to load it
static loadClass ($class)
 Force a class to be run through the autoloader, helpful for things like Sanitizer that have define()s outside of their class definition.

Detailed Description

Definition at line 1138 of file AutoLoader.php.


Member Function Documentation

static AutoLoader::autoload ( className) [static]

autoload - take a class name and attempt to load it

Parameters:
string$classNamename of class we're looking for.
Returns:
bool Returning false is important on failure as it allows Zend to try and look in other registered autoloaders as well.

Definition at line 1147 of file AutoLoader.php.

References $IP, $wgAutoloadClasses, $wgAutoloadLocalClasses, as, global, and wfDebug().

static AutoLoader::loadClass ( class) [static]

Force a class to be run through the autoloader, helpful for things like Sanitizer that have define()s outside of their class definition.

Of course this wouldn't be necessary if everything in MediaWiki was class-based. Sigh.

Parameters:
$classstring
Returns:
Boolean Return the results of class_exists() so we know if we were successful

Definition at line 1204 of file AutoLoader.php.

Referenced by SVGMetadataExtractorTest\setUp(), and SanitizerTest\setUp().


The documentation for this class was generated from the following file: