Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | private function __construct() |
||
10 | { |
||
11 | $this->cnxx = new \PDO("mysql:host=" . GJC_DB_HOSTNAME . ";dbname=" . GJC_DB_NAME . ";charset=utf8", GJC_DB_USERNAME, GJC_DB_PASSWORD); |
||
12 | $this->cnxx->exec("SET NAMES utf8"); |
||
13 | $this->cnxx->setAttribute(\PDO::ATTR_EMULATE_PREPARES, false); |
||
14 | $this->cnxx->setAttribute(\PDO::ATTR_DEFAULT_FETCH_MODE, \PDO::FETCH_OBJ); |
||
15 | $this->cnxx->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION); |
||
16 | } |
||
27 |