MediaWiki  REL1_19
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 965 of file AutoLoader.php.


Member Function Documentation

static AutoLoader::autoload ( className) [static]

autoload - take a class name and attempt to load it

Parameters:
$classNameString: name 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 974 of file AutoLoader.php.

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

Here is the call graph for this function:

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.

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

Definition at line 1021 of file AutoLoader.php.

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

Here is the caller graph for this function:


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