PHP 클래스 PPI\Framework\Autoload

It is able to load classes that use either: * The technical interoperability standards for PHP 5.3 namespaces and class names (https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md); Example usage: PPI\Framework\Autoload::add('Symfony', PPI_VENDOR_PATH . '/path/to/src/Symfony') PPI\Framework\Autoload::register();
파일 보기 프로젝트 열기: ppi/framework 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_options array

보호된 프로퍼티들

프로퍼티 타입 설명
$_loader null | object The ClassLoader object.
$_registeredNamespaces array

공개 메소드들

메소드 설명
add ( string $key, string $path ) Add a namespace to the autoloader path.
config ( array $config ) Add some items to the class config.
exists ( string $key ) : boolean Check if a namespace has been registered. This is a workaround as the default self::$_options['loader'] class does not have an exists() method.
register ( ) Register the autoloader namespaces or prefixes thus far.

메소드 상세

add() 공개 정적인 메소드

Add a namespace to the autoloader path.
public static add ( string $key, string $path )
$key string
$path string

config() 공개 정적인 메소드

Add some items to the class config.
public static config ( array $config )
$config array

exists() 공개 정적인 메소드

Check if a namespace has been registered. This is a workaround as the default self::$_options['loader'] class does not have an exists() method.
public static exists ( string $key ) : boolean
$key string
리턴 boolean

register() 공개 정적인 메소드

Register the autoloader namespaces or prefixes thus far.
public static register ( )

프로퍼티 상세

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

The ClassLoader object.
protected static null|object $_loader
리턴 null | object

$_options 공개적으로 정적으로 프로퍼티

public static array $_options
리턴 array

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

protected static array $_registeredNamespaces
리턴 array