Stud.IP  2.4 Revision 48548
 All Data Structures Namespaces Files Functions Variables Groups Pages
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

static addAutoloadPath (   $path)
static

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

Parameters
string$paththe path to add
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
static register ( )
static

Registers the StudipAutoloader as an autoloader.

static removeAutoloadPath (   $path)
static

Removes a path from the list of paths.

Parameters
string$paththe path to remove
static unregister ( )
static

Un-registers the StudipAutoloader again.

Field Documentation

$autoload_paths = array()
staticprotected

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