Stud.IP  3.2 Revision
StudipAutoloader Class Reference
Collaboration diagram for StudipAutoloader:
Collaboration graph

Static Public Member Functions

static register ()
 
static unregister ()
 
static addAutoloadPath ($path)
 
static removeAutoloadPath ($path)
 
static loadClass ($class)
 

Static Protected Attributes

static $autoload_paths = array()
 

Detailed Description

The StudipAutoloader takes care for automatically loading classes. You just have to provide it with a couple of paths where it may find the classes.

Example:

Member Function Documentation

◆ addAutoloadPath()

static addAutoloadPath (   $path)
static

Adds another path to the list of paths where to search for classes.

Parameters
string$paththe path to add

◆ loadClass()

static loadClass (   $class)
static

Loads the specified class or interface.

Parameters
string$classthe name of the class
Returns
bool|null true, if loaded, otherwise null

◆ register()

static register ( )
static

Registers the StudipAutoloader as an autoloader.

◆ removeAutoloadPath()

static removeAutoloadPath (   $path)
static

Removes a path from the list of paths.

Parameters
string$paththe path to remove

◆ unregister()

static unregister ( )
static

Un-registers the StudipAutoloader again.

Field Documentation

◆ $autoload_paths

$autoload_paths = array()
staticprotected

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