Moved PDO classes into Database/PDO and gave data models the ability to know which datasource to use.

This commit is contained in:
Josh Sherman 2010-10-13 23:41:27 -04:00
parent 1e0a7cd719
commit 1cb7980353
7 changed files with 24 additions and 7 deletions

View file

@ -0,0 +1,48 @@
<?php
/**
* MySQL Class File for PICKLES
*
* PHP version 5
*
* Licensed under the GNU General Public License Version 3
* Redistribution of these files must retain the above copyright notice.
*
* @package PICKLES
* @author Josh Sherman <josh@phpwithpickles.org>
* @copyright Copyright 2007-2010, Gravity Boulevard, LLC
* @license http://www.gnu.org/licenses/gpl.html GPL v3
* @link http://phpwithpickles.org
*/
/**
* MySQL Database Abstraction Layer
*/
class Database_PDO_MySQL extends Database_PDO_Common
{
/**
* Driver
*
* @access protected
* @var string
*/
protected $driver = 'pdo_mysql';
/**
* DSN format
*
* @access protected
* @var string
*/
protected $dsn = 'mysql:host=[[hostname]];port=[[port]];unix_socket=[[socket]];dbname=[[database]]';
/**
* Default port
*
* @access proceted
* @var integer
*/
protected $port = 3306;
}
?>