DB_PDO Class Reference

Inherits DB_Base.

Collaboration diagram for DB_PDO:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DB_PDO ($conn, $persistent)
 _catch ($msg="")
 get_table_defn ($table)
 run_query ($sql)
 fetch_row (&$q)
 fetch_array (&$q)
 fetch_field (&$q, $num)
 num_fields (&$q)
 num_rows (&$q)
 get_insert_id ()
 free_result ($q)

Detailed Description

PRONTO WEB FRAMEWORK Copyright (C) 2006, Judd Vinet

Author:
Judd Vinet <jvinet@zeroflux.org>

Description: DB driver for PDO.

NOTE: Requires PHP5.

Definition at line 13 of file pdo.php.


Member Function Documentation

DB_PDO::_catch ( msg = ""  ) 

Exception/error catcher

Parameters:
string $msg

Reimplemented from DB_Base.

Definition at line 42 of file pdo.php.

References DB_Base::error().

Referenced by DB_PDO().

DB_PDO::DB_PDO ( conn,
persistent 
)

Definition at line 15 of file pdo.php.

References DB_Base::$conn, _catch(), and run_query().

DB_PDO::fetch_array ( &$  q  ) 

Definition at line 75 of file pdo.php.

DB_PDO::fetch_field ( &$  q,
num 
)

Definition at line 79 of file pdo.php.

DB_PDO::fetch_row ( &$  q  ) 

Definition at line 71 of file pdo.php.

DB_PDO::free_result ( q  ) 

Definition at line 95 of file pdo.php.

DB_PDO::get_insert_id (  ) 

Definition at line 91 of file pdo.php.

DB_PDO::get_table_defn ( table  ) 

Definition at line 53 of file pdo.php.

References DB_Base::get_all_pair(), num_fields(), and run_query().

DB_PDO::num_fields ( &$  q  ) 

Definition at line 83 of file pdo.php.

Referenced by get_table_defn().

DB_PDO::num_rows ( &$  q  ) 

Definition at line 87 of file pdo.php.

DB_PDO::run_query ( sql  ) 

Definition at line 67 of file pdo.php.

Referenced by DB_PDO(), and get_table_defn().


The documentation for this class was generated from the following file:

Generated on Wed Jan 13 09:21:04 2010 for Pronto Framework by  doxygen 1.6.1