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
파일 보기 프로젝트 열기: tastyigniter/tastyigniter 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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