PHP 클래스 Phergie_Autoload, phergie

저자: Phergie Development Team ([email protected])
파일 보기 프로젝트 열기: phergie/phergie 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$prefixes array Using this, Autoload can support loading class A_B_C from file folder/C.php (using prefix 'A_B_') instead of just looking for it in the file folder/A/B/C.php.

공개 메소드들

메소드 설명
__construct ( ) : void Constructor to add the base Phergie path to the include_path.
addPath ( string $path, string $prefix = null ) : void Add a path to the include path.
load ( string $class ) : void Autoload callback for loading class files.
registerAutoloader ( ) : void Registers an instance of this class as an autoloader.

메소드 상세

__construct() 공개 메소드

Constructor to add the base Phergie path to the include_path.
public __construct ( ) : void
리턴 void

addPath() 공개 정적인 메소드

Add a path to the include path.
public static addPath ( string $path, string $prefix = null ) : void
$path string Path to add
$prefix string Prefix to trim off of the requested class name before trying to load the corresponding file
리턴 void

load() 공개 메소드

Autoload callback for loading class files.
public load ( string $class ) : void
$class string Class to load
리턴 void

registerAutoloader() 공개 정적인 메소드

Registers an instance of this class as an autoloader.
public static registerAutoloader ( ) : void
리턴 void

프로퍼티 상세

$prefixes 보호되어 있는 정적으로 프로퍼티

Using this, Autoload can support loading class A_B_C from file folder/C.php (using prefix 'A_B_') instead of just looking for it in the file folder/A/B/C.php.
protected static array $prefixes
리턴 array