MediaWiki  1.23.2
AutoLoader Class Reference

Static Public Member Functions

static autoload ( $className)
 autoload - take a class name and attempt to load it More...
 
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. More...
 
static resetAutoloadLocalClassesLower ()
 Method to clear the protected class property $autoloadLocalClassesLower. More...
 

Static Protected Attributes

static $autoloadLocalClassesLower = null
 

Detailed Description

Definition at line 1193 of file AutoLoader.php.

Member Function Documentation

◆ autoload()

static AutoLoader::autoload (   $className)
static

autoload - take a class name and attempt to load it

Parameters
string$classNamename of class we're looking for.

Definition at line 1201 of file AutoLoader.php.

References $IP, $wgAutoloadClasses, $wgAutoloadLocalClasses, global, and wfDebugLog().

◆ loadClass()

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 1264 of file AutoLoader.php.

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

◆ resetAutoloadLocalClassesLower()

static AutoLoader::resetAutoloadLocalClassesLower ( )
static

Method to clear the protected class property $autoloadLocalClassesLower.

Used in tests.

Definition at line 1272 of file AutoLoader.php.

Referenced by AutoLoaderTest\setUp().

Member Data Documentation

◆ $autoloadLocalClassesLower

AutoLoader::$autoloadLocalClassesLower = null
staticprotected

Definition at line 1194 of file AutoLoader.php.


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