File: creating_drivers.rst

package info (click to toggle)
php-codeigniter-framework 3.1.13%2Bdfsg1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,228 kB
  • sloc: php: 37,178; xml: 205; makefile: 138; python: 66; sh: 65
file content (25 lines) | stat: -rw-r--r-- 679 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
################
Creating Drivers
################

Driver Directory and File Structure
===================================

Sample driver directory and file structure layout:

-  /application/libraries/Driver_name

   -  Driver_name.php
   -  drivers

      -  Driver_name_subclass_1.php
      -  Driver_name_subclass_2.php
      -  Driver_name_subclass_3.php

.. note:: In order to maintain compatibility on case-sensitive
	file systems, the Driver_name directory must be
	named in the format returned by ``ucfirst()``.

.. note:: The Driver library's architecture is such that
	the subclasses don't extend and therefore don't inherit
	properties or methods of the main driver.