_dsn() protected method

Creates a PDO DSN for the adapter from $this->_config settings.
protected _dsn ( ) : string
return string
コード例 #1
0
ファイル: Mysql.php プロジェクト: SalesOneGit/s1_magento
 /**
  * Override _dsn() and ensure that charset is incorporated in mysql
  * @see Zend_Db_Adapter_Pdo_Abstract::_dsn()
  */
 protected function _dsn()
 {
     $dsn = parent::_dsn();
     if (isset($this->_config['charset'])) {
         $dsn .= ';charset=' . $this->_config['charset'];
     }
     return $dsn;
 }