PHP Класс Phergie_Autoload, phergie

Автор: Phergie Development Team ([email protected])
Показать файл Открыть проект Примеры использования класса

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

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