/** * 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; }
protected static function getDAO($DAO, $arg) { if ($DAO == 'PDO') { return PDOFactory::getMysqlConnection($arg); } }