Created
April 15, 2014 19:37
-
-
Save robertpitt/10763846 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* LightPHP Framework | |
* LitePHP is a framework that has been designed to be lite waight, extensible and fast. | |
* | |
* @author Robert Pitt <[email protected]> | |
* @category core | |
* @copyright 2013 Robert Pitt | |
* @license GPL v3 - GNU Public License v3 | |
* @version 1.0.0 | |
*/ | |
!defined('SECURE') && die('Access Forbidden!'); | |
/** | |
* Database Configuration | |
*/ | |
class PDO_Config | |
{ | |
/** | |
* PDO Driver we should use | |
* @var string | |
* @see http://php.net/manual/en/pdo.construct.php | |
*/ | |
public $driver = "mysql"; | |
/** | |
* Hostname fo the DB server | |
* @var string | |
* @see http://php.net/manual/en/pdo.construct.php | |
*/ | |
public $hostname = ""; | |
/** | |
* Database name | |
* @var string | |
* @see http://php.net/manual/en/pdo.construct.php | |
*/ | |
public $database = ""; | |
/** | |
* Username used for authentication | |
* @var string | |
* @see http://php.net/manual/en/pdo.construct.php | |
*/ | |
public $username = ""; | |
/** | |
* Password used for authentication | |
* @var string | |
* @see http://php.net/manual/en/pdo.construct.php | |
*/ | |
public $password = ""; | |
/** | |
* DSN Used to connect to the database | |
* @var string | |
* @see http://php.net/manual/en/pdo.construct.php | |
*/ | |
public $dsn = null; | |
/** | |
* Driver Options used for PDO | |
* @var array | |
* @see http://php.net/manual/en/pdo.construct.php | |
*/ | |
public $driver_options = array( | |
); | |
/** | |
* Within when using SQLLite we need to specifiy a path on teh filesystem. | |
* We do that by using the constructor to access the Application so we can get the application path | |
* For instances like mysql you can just set the value within the the class variables. | |
*/ | |
public function __construct() | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment