PHP Класс CI_Driver_Library, TastyIgniter

This class enables you to create "Driver" libraries that add runtime ability to extend the capabilities of a class via additional driver objects
Автор: EllisLab Dev Team
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$lib_name string Name of the current class - usually the driver class
$valid_drivers array Array of drivers that are available to use with the driver class

Открытые методы

Метод Описание
__get ( $child ) : object Get magic method
load_driver ( $child ) : object Load driver

Описание методов

__get() публичный Метод

The first time a child is used it won't exist, so we instantiate it subsequents calls will go straight to the proper child.
public __get ( $child ) : object
Результат object Child class

load_driver() публичный Метод

Separate load_driver call to support explicit driver load by library or user
public load_driver ( $child ) : object
Результат object Child class

Описание свойств

$lib_name защищенное свойство

Name of the current class - usually the driver class
protected string $lib_name
Результат string

$valid_drivers защищенное свойство

Array of drivers that are available to use with the driver class
protected array $valid_drivers
Результат array