Class n2f_database

Description

Core database class for N2 Framework Yverdon.

Located in /system/classes/database.cls.php (line 23)

n2f_events
   |
   --n2f_database
Variable Summary
resource $conn
string $extension
integer $queries
Method Summary
static null addExtension (string $name,  $callbacks)
n2f_database __construct (n2f_cls &$n2f, string $ext, n2f_cls $n2f)
n2f_database addData (mixed $key, mixed $data)
mixed getData (mixed $key)
boolean isOpen ()
n2f_database open (array $args)
n2f_database_query query (string $sql, [ $options = null])
Variables
resource $conn (line 29)

Connection resource for this n2f_database object.

  • access: public
string $extension (line 41)

The extension currently in use by this n2f_database object.

  • access: public
integer $queries (line 35)

Number of queries performed by this n2f_database object.

  • access: public
array $_internalData (line 47)

Internal container for object data.

  • access: protected

Inherited Variables

Inherited from n2f_events

n2f_events::$events
Methods
static method addExtension (line 56)

Static function for adding database extensions to the available list.

  • access: public
static null addExtension (string $name,  $callbacks)
  • string $name: Name of extension to add
  • array $callbacks: Array of callbacks for extension
Constructor __construct (line 93)

Initializes a new n2f_database object.

  • access: public
n2f_database __construct (n2f_cls &$n2f, string $ext, n2f_cls $n2f)

Redefinition of:
n2f_events::__construct()
Initializes the n2f_events object.
addData (line 130)

Mechanism for storing data in the n2f_database object's internal data container.

  • access: public
n2f_database addData (mixed $key, mixed $data)
  • mixed $key
  • mixed $data
close (line 174)

Closes the connection for this n2f_database object.

  • access: public
n2f_database close ()
getData (line 142)

Retrieves data from the n2f_database object's internal data container.

  • access: public
mixed getData (mixed $key)
  • mixed $key
isOpen (line 193)

Returns true or false based on whether or not the object's connection is active.

  • access: public
boolean isOpen ()
open (line 156)

Opens the connection for this n2f_database object.

  • access: public
n2f_database open (array $args)
  • array $args
query (line 203)

Produces a new n2f_database_query object from the given query.

  • access: public
n2f_database_query query (string $sql, [ $options = null])
  • string $sql
  • $options

Inherited Methods

Inherited From n2f_events

n2f_events::__construct()
n2f_events::addEvent()
n2f_events::hitEvent()
n2f_events::hookEvent()

Documentation generated on Sat, 23 Jan 2010 11:13:34 -0500 by phpDocumentor 1.4.1