\CI_Driver_Library

CodeIgniter Driver Library Class

This class enables you to create "Driver" libraries that add runtime ability to extend the capabilities of a class via additional driver objects

Summary

Methods
Properties
Constants
__get()
load_driver()
No public properties found
No constants found
No protected methods found
$valid_drivers
$lib_name
N/A
No private methods found
No private properties found
N/A

Properties

$valid_drivers

$valid_drivers : array

Array of drivers that are available to use with the driver class

Type

array

$lib_name

$lib_name : string

Name of the current class - usually the driver class

Type

string

Methods

__get()

__get(  $child) : object

Get magic method

The first time a child is used it won't exist, so we instantiate it subsequents calls will go straight to the proper child.

Parameters

$child

Returns

object —

Child class

load_driver()

load_driver(  $child) : object

Load driver

Separate load_driver call to support explicit driver load by library or user

Parameters

$child

Returns

object —

Child class