Esempio n. 1
0
 /** 
  * Return an object PDO
  * @return PDO
  */
 protected function _getDatabase()
 {
     $pdo = PDOFactory::getMysqlConnection('default');
     if (!$pdo) {
         throw new DatabaseError('Can\'t create the PDO object.');
     }
     return $pdo;
 }
Esempio n. 2
0
 protected static function getDAO($DAO, $arg)
 {
     if ($DAO == 'PDO') {
         return PDOFactory::getMysqlConnection($arg);
     }
 }