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();
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$_options array

Защищенные свойства (Protected)

Свойство Тип Описание
$_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