Class Database_Mongo

Description

Mongo Database Abstraction Layer

Located in /classes/Database/Mongo.php (line 21)

Object
   |
   --Database_Common
      |
      --Database_Mongo
Variable Summary
string $driver
Method Summary
boolean close ()
void fetch ( $collection,  $query, [ $fields = null], [ $return_type = null])
void fetchAll ( $collection,  $query, [ $fields = null])
boolean open ()
Variables
Methods
close (line 87)

Closes database connection

Sets the connection to null regardless of state.

  • return: always true
  • access: public
boolean close ()

Redefinition of:
Database_Common::close()
Closes database connection
fetch (line 106)

Fetch a single row from the database

  • access: public
void fetch ( $collection,  $query, [ $fields = null], [ $return_type = null])
  • $collection
  • $query
  • $fields
  • $return_type
fetchAll (line 127)

Fetches all rows as an array

  • access: public
void fetchAll ( $collection,  $query, [ $fields = null])
  • $collection
  • $query
  • $fields
open (line 39)

Opens database connection

Establishes a connection to the database based on the set configuration options.

  • return: true on success, throws an exception overwise
  • access: public
boolean open ()

Redefinition of:
Database_Common::open()
Opens database connection

Inherited Methods

Inherited From Database_Common

Database_Common::__construct()
Database_Common::close()
Database_Common::open()
Database_Common::setDatabase()
Database_Common::setHostname()
Database_Common::setPassword()
Database_Common::setPort()
Database_Common::setSocket()
Database_Common::setUsername()

Inherited From Object

Object::__construct()
Object::getInstance()
Object::__destruct()

Documentation generated on Sun, 17 Oct 2010 23:17:23 -0400 by phpDocumentor 1.4.3