Skip to content

CI_Driver_Library

Mathieu Nayrolles edited this page Jan 20, 2016 · 1 revision

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

  • Class name: CI_Driver_Library
  • Namespace:

Properties

$valid_drivers

protected array $valid_drivers = array()

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

  • Visibility: protected

$lib_name

protected string $lib_name

Name of the current class - usually the driver class

  • Visibility: protected

Methods

__get

object CI_Driver_Library::__get($child)

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.

  • Visibility: public

Arguments

  • $child mixed

load_driver

object CI_Driver_Library::load_driver($child)

Load driver

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

  • Visibility: public

Arguments

  • $child mixed
Clone this wiki locally