PHP 클래스 ClassLoader, ClearSky

저자: aipa
파일 보기 프로젝트 열기: robske110/ClearSky 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ClassLoader $parent = null )
addPath ( string $path, boolean $prepend = false ) Adds a path to the lookup list
findClass ( string $name ) : string | null Returns the path for the class, if any
getClasses ( ) : string[] Returns an array of the classes loaded
getParent ( ) : ClassLoader Returns the parent ClassLoader, if any
loadClass ( string $name ) : boolean Called when there is a class to load
register ( boolean $prepend = false ) : boolean Attaches the ClassLoader to the PHP runtime
removePath ( $path ) Removes a path from the lookup list

메소드 상세

__construct() 공개 메소드

public __construct ( ClassLoader $parent = null )
$parent ClassLoader

addPath() 공개 메소드

Adds a path to the lookup list
public addPath ( string $path, boolean $prepend = false )
$path string
$prepend boolean

findClass() 공개 메소드

Returns the path for the class, if any
public findClass ( string $name ) : string | null
$name string
리턴 string | null

getClasses() 공개 메소드

Returns an array of the classes loaded
public getClasses ( ) : string[]
리턴 string[]

getParent() 공개 메소드

Returns the parent ClassLoader, if any
public getParent ( ) : ClassLoader
리턴 ClassLoader

loadClass() 공개 메소드

Called when there is a class to load
public loadClass ( string $name ) : boolean
$name string
리턴 boolean

register() 공개 메소드

Attaches the ClassLoader to the PHP runtime
public register ( boolean $prepend = false ) : boolean
$prepend boolean
리턴 boolean

removePath() 공개 메소드

Removes a path from the lookup list
public removePath ( $path )
$path