PHP Class Elgg\ClassMap

Show file Open project: elgg/elgg

Protected Properties

Property Type Description
$altered boolean
$map array

Public Methods

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

Method Details

getAltered() public method

Was this map altered by the class loader?
public getAltered ( ) : boolean
return boolean

getMap() public method

Get the full map
public getMap ( ) : array
return array

getPath() public method

Get the path for a class/interface/trait
public getPath ( string $class ) : string
$class string a class/interface/trait name
return string the file path or empty string

mergeMap() public method

Merge a class map with the current map
public mergeMap ( array $map ) : ClassMap
$map array array with keys being class/interface/trait names and values the absolute file paths that define them
return ClassMap

setAltered() public method

Set the altered flag
public setAltered ( boolean $altered ) : ClassMap
$altered boolean Whether the class map has been altered
return ClassMap

setMap() public method

Set the full map
public setMap ( array $map ) : ClassMap
$map array array with keys being class/interface/trait names and values the absolute file paths that define them
return ClassMap

setPath() public method

Set the path for a class/interface/trait, and mark map as altered
public setPath ( string $class, string $path ) : ClassMap
$class string a class/interface/trait name
$path string absolute file path
return ClassMap

Property Details

$altered protected property

protected bool $altered
return boolean

$map protected property

protected array $map
return array