PHP 클래스 Elgg\ClassMap

파일 보기 프로젝트 열기: elgg/elgg

보호된 프로퍼티들

프로퍼티 타입 설명
$altered boolean
$map array

공개 메소드들

메소드 설명
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

메소드 상세

getAltered() 공개 메소드

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

getMap() 공개 메소드

Get the full map
public getMap ( ) : array
리턴 array

getPath() 공개 메소드

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

mergeMap() 공개 메소드

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
리턴 ClassMap

setAltered() 공개 메소드

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

setMap() 공개 메소드

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
리턴 ClassMap

setPath() 공개 메소드

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
리턴 ClassMap

프로퍼티 상세

$altered 보호되어 있는 프로퍼티

protected bool $altered
리턴 boolean

$map 보호되어 있는 프로퍼티

protected array $map
리턴 array