Welcome, Guest Log In

Class Krai_Db_Handler_Pdo

Class Overview

PDO database handler

This is a database handler implementing a wrapper around the http://www.php.net/PDO functionality. THIS IS STILL ALPHA QUALITY. USE AT YOUR OWN RISK.

Located in /Krai/Db/Handler/Pdo.php [line 23]

Krai_Db_Handler
   |
   --Krai_Db_Handler_Pdo

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Krai_Db_Handler

Krai_Db_Handler::$CONFIG

Inherited From Krai_Db_Handler

Krai_Db_Handler::__construct()
Constructor.
Krai_Db_Handler::DeleteQuery()
Generate a query struct for a delete query
Krai_Db_Handler::Fetch()
Fetch a database record from a query as an object
Krai_Db_Handler::FetchArray()
Fetch a database record from a query as an array
Krai_Db_Handler::FetchOne()
Fetch just one column from the result.
Krai_Db_Handler::GetJoins()
Generate the joins from a table array
Krai_Db_Handler::InsertQuery()
Generate a query struct for an insert query
Krai_Db_Handler::Process()
Process a query struct according to its type.
Krai_Db_Handler::Query()
Execute an SQL query
Krai_Db_Handler::SelectQuery()
Generate a query struct for a find query
Krai_Db_Handler::Transaction()
Transaction controller
Krai_Db_Handler::UpdateQuery()
Generate a query struct for an update query

[ Top ]
Property Summary
PDO   $_dbc   Holds the database connection proper
array   $_prepared_statements   Holds copies of prepared statements

[ Top ]
Method Summary
static string   GetDSN()   Generates DSN strings for a variety of databases from the $dbinfo
void   __construct()   Constructor
void   Fetch()  
void   FetchArray()  
void   FetchOne()  
void   Process()  
void   Query()  
void   Transaction()  

[ Top ]
Properties
PDO   $_dbc [line 32]

Holds the database connection proper

This variable holds the actual connection to the database.

API Tags:
Access:  private


[ Top ]
array   $_prepared_statements = array() [line 39]

Holds copies of prepared statements

API Tags:
Access:  private


[ Top ]
Methods
static method GetDSN  [line 292]

  static string GetDSN( $dbinfo  )

Generates DSN strings for a variety of databases from the $dbinfo

This function processes database info into the DSN strings that PDO needs in order to connect to the database.

Parameters:
array   $dbinfo:  Database connection information

API Tags:
Access:  public

Information Tags:
Throws:  Krai_Db_Exception

[ Top ]
Constructor __construct  [line 47]

  void __construct( $dbinfo  )

Constructor

Parameters:
array   $dbinfo:  Database connection information

API Tags:
Access:  public


Redefinition of:
Krai_Db_Handler::__construct()
Constructor.

[ Top ]
Fetch  [line 252]

  void Fetch( Krai_Db_Query &$qid  )

Parameters:
Krai_Db_Query   &$qid: 

API Tags:
Access:  public


Redefinition of:
Krai_Db_Handler::Fetch()
Fetch a database record from a query as an object

[ Top ]
FetchArray  [line 262]

  void FetchArray( Krai_Db_Query &$qid  )

Parameters:
Krai_Db_Query   &$qid: 

API Tags:
Access:  public


Redefinition of:
Krai_Db_Handler::FetchArray()
Fetch a database record from a query as an array

[ Top ]
FetchOne  [line 272]

  void FetchOne( Krai_Db_Query &$qid  )

Parameters:
Krai_Db_Query   &$qid: 

API Tags:
Access:  public


Redefinition of:
Krai_Db_Handler::FetchOne()
Fetch just one column from the result.

[ Top ]
Process  [line 53]

  void Process( Krai_Struct_Dbquery $query  )

Parameters:
Krai_Struct_Dbquery   $query: 

API Tags:
Access:  public


Redefinition of:
Krai_Db_Handler::Process()
Process a query struct according to its type.

[ Top ]
Query  [line 148]

  void Query( $querytype, $sql, [ $params = array()]  )

Parameters:
   $querytype: 
   $sql: 
array   $params: 

API Tags:
Access:  public


Redefinition of:
Krai_Db_Handler::Query()
Execute an SQL query

[ Top ]
Transaction  [line 225]

  void Transaction( $_action  )

Parameters:
   $_action: 

API Tags:
Access:  public


Redefinition of:
Krai_Db_Handler::Transaction()
Transaction controller

[ Top ]

Documentation generated on Fri, 25 Jul 2008 15:19:46 -0400 by phpDocumentor 1.4.2
Krai Framework site admin credits sitemap valid xhtml?