. */ /** * Doctrine_Connection_Firebird * * @package Doctrine * @subpackage Connection * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @author Konsta Vesterinen * @author Lukas Smith (PEAR MDB2 library) * @author Lorenzo Alberton (PEAR MDB2 Interbase driver) * @version $Revision$ * @link www.phpdoctrine.org * @since 1.0 */ class Doctrine_Connection_Firebird extends Doctrine_Connection { /** * @var string $driverName the name of this connection driver */ protected $driverName = 'Firebird'; /** * the constructor * * @param Doctrine_Manager $manager * @param PDO $pdo database handle */ public function __construct(array $params) { parent::__construct($params); } /** * Set the charset on the current connection * * @param string charset * * @return void */ public function setCharset($charset) { $query = 'SET NAMES '.$this->dbh->quote($charset); $this->exec($query); } }