Skip to content

CI_Driver

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

CI_Driver

CodeIgniter Driver Class

This class enables you to create drivers for a Library based on the Driver Library. It handles the drivers' access to the parent library

  • Class name: CI_Driver
  • Namespace:

Properties

$_parent

protected object $_parent

Instance of the parent class

  • Visibility: protected

$_methods

protected array $_methods = array()

List of methods in the parent class

  • Visibility: protected

$_properties

protected array $_properties = array()

List of properties in the parent class

  • Visibility: protected

$_reflections

protected array $_reflections = array()

Array of methods and properties for the parent class(es)

  • Visibility: protected
  • This property is static.

Methods

decorate

void CI_Driver::decorate($parent)

Decorate

Decorates the child with the parent driver lib's methods and properties

  • Visibility: public

Arguments

  • $parent mixed

__call

mixed CI_Driver::__call($method, $args)

__call magic method

Handles access to the parent driver library's methods

  • Visibility: public

Arguments

  • $method mixed
  • $args mixed

__get

mixed CI_Driver::__get($var)

__get magic method

Handles reading of the parent driver library's properties

  • Visibility: public

Arguments

  • $var mixed

__set

mixed CI_Driver::__set($var, $val)

__set magic method

Handles writing to the parent driver library's properties

  • Visibility: public

Arguments

  • $var mixed
  • $val mixed
Clone this wiki locally