Elgg  Version 1.11
Public Member Functions | Protected Attributes | List of all members
Elgg\ClassMap Class Reference

Public Member Functions

 getPath ($class)
 Get the path for a class/interface/trait. More...
 
 setPath ($class, $path)
 Set the path for a class/interface/trait, and mark map as altered. More...
 
 getAltered ()
 Was this map altered by the class loader? More...
 
 setAltered ($altered)
 Set the altered flag. More...
 
 getMap ()
 Get the full map. More...
 
 setMap (array $map)
 Set the full map. More...
 
 mergeMap (array $map)
 Merge a class map with the current map. More...
 

Protected Attributes

 $map = array()
 
 $altered = false
 

Detailed Description

Definition at line 11 of file ClassMap.php.

Member Function Documentation

Elgg\ClassMap::getAltered ( )

Was this map altered by the class loader?

Returns
bool

Definition at line 57 of file ClassMap.php.

Elgg\ClassMap::getMap ( )

Get the full map.

Returns
array

Definition at line 77 of file ClassMap.php.

Elgg\ClassMap::getPath (   $class)

Get the path for a class/interface/trait.

Parameters
string$classa class/interface/trait name
Returns
string the file path or empty string

Definition at line 29 of file ClassMap.php.

Elgg\ClassMap::mergeMap ( array  $map)

Merge a class map with the current map.

Parameters
array$maparray with keys being class/interface/trait names and values the absolute file paths that define them
Returns

Definition at line 100 of file ClassMap.php.

Elgg\ClassMap::setAltered (   $altered)

Set the altered flag.

Parameters
bool$alteredWhether the class map has been altered
Returns

Definition at line 67 of file ClassMap.php.

Elgg\ClassMap::setMap ( array  $map)

Set the full map.

Parameters
array$maparray with keys being class/interface/trait names and values the absolute file paths that define them
Returns

Definition at line 88 of file ClassMap.php.

Elgg\ClassMap::setPath (   $class,
  $path 
)

Set the path for a class/interface/trait, and mark map as altered.

Parameters
string$classa class/interface/trait name
string$pathabsolute file path
Returns

Definition at line 43 of file ClassMap.php.

Member Data Documentation

Elgg\ClassMap::$altered = false
protected

Definition at line 21 of file ClassMap.php.

Elgg\ClassMap::$map = array()
protected

Definition at line 16 of file ClassMap.php.


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