Welcome, Guest Log In

Class Krai_Db

Class Overview

Database connection configuration and loading class

This class provides functionality to determine the correct type of Krai_Db_Handler to use for a certain database type. It also loads the necessary files to instantiate a connection of that type.

Located in /Krai/Db.php [line 34]



		
		
		
		

Methods

[ Top ]
Method Summary
static string   ClassLookup()   Looks up the name and includes the file for the class handling a certain type of database.

[ Top ]
Methods
static method ClassLookup  [line 50]

  static string ClassLookup( string $_type  )

Looks up the name and includes the file for the class handling a certain type of database.

This function is basically a switch on the types of databases supported by the framework at any given time. Currently there is alpha support for a PDO connection which should theoretically support many formats, and beta-to-stable support for mysql through the http://www.php.net/mysqli interface.

Parameters:
string   $_type:  The database type

API Tags:
Return:  The name of the class
Access:  public

Information Tags:
Throws:  Krai_Db_Exception

[ Top ]

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