PHP 클래스 sfAutoload

This class is a singleton as PHP seems to be unable to register 2 autoloaders that are instances of the same class (why?).
저자: Fabien Potencier ([email protected])
파일 보기 프로젝트 열기: lexpress/symfony1 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$classes
$freshCache
$instance
$overriden

공개 메소드들

메소드 설명
autoload ( string $class ) : boolean Handles autoloading of classes that have been specified in autoload.yml.
getClassPath ( string $class ) : string | null Returns the path where a particular class can be found.
getInstance ( ) : sfCoreAutoload Retrieves the singleton instance of this class.
loadClass ( string $class ) : boolean Tries to load a class that has been specified in autoload.yml.
register ( ) : void Register sfAutoload in spl autoloader.
reloadClasses ( boolean $force = false ) : boolean Reloads the autoloader.
setClassPath ( string $class, string $path ) Sets the path for a particular class.
unregister ( ) : void Unregister sfAutoload from spl autoloader.

보호된 메소드들

메소드 설명
__construct ( )

메소드 상세

__construct() 보호된 메소드

protected __construct ( )

autoload() 공개 메소드

Handles autoloading of classes that have been specified in autoload.yml.
public autoload ( string $class ) : boolean
$class string A class name.
리턴 boolean Returns true if the class has been loaded

getClassPath() 공개 메소드

Returns the path where a particular class can be found.
public getClassPath ( string $class ) : string | null
$class string A PHP class name
리턴 string | null An absolute path

getInstance() 공개 정적인 메소드

Retrieves the singleton instance of this class.
public static getInstance ( ) : sfCoreAutoload
리턴 sfCoreAutoload A sfCoreAutoload implementation instance.

loadClass() 공개 메소드

Tries to load a class that has been specified in autoload.yml.
public loadClass ( string $class ) : boolean
$class string A class name.
리턴 boolean Returns true if the class has been loaded

register() 공개 정적인 메소드

Register sfAutoload in spl autoloader.
public static register ( ) : void
리턴 void

reloadClasses() 공개 메소드

Reloads the autoloader.
public reloadClasses ( boolean $force = false ) : boolean
$force boolean Whether to force a reload
리턴 boolean True if the reload was successful, otherwise false

setClassPath() 공개 메소드

Sets the path for a particular class.
public setClassPath ( string $class, string $path )
$class string A PHP class name
$path string An absolute path

unregister() 공개 정적인 메소드

Unregister sfAutoload from spl autoloader.
public static unregister ( ) : void
리턴 void

프로퍼티 상세

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

protected $classes

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

protected static $freshCache

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

protected static $instance

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

protected $overriden