/** * Ethna_DB_PEARクラスのコンストラクタ * * @access public * @param object Ethna_Controller &$controller コントローラオブジェクト * @param string $dsn DSN * @param bool $persistent 持続接続設定 */ function Ethna_DB_PEAR(&$controller, $dsn, $persistent) { parent::Ethna_DB($controller, $dsn, $persistent); $this->db = null; $this->logger =& $controller->getLogger(); $this->sql =& $controller->getSQL(); $dsninfo = DB::parseDSN($dsn); $this->type = $dsninfo['phptype']; }
/** * Ethna_DB_PEARクラスのコンストラクタ * * @access public * @param object Ethna_Controller $controller コントローラオブジェクト * @param string $dsn DSN * @param bool $persistent 持続接続設定 */ public function __construct($controller, $dsn, $persistent) { parent::__construct($controller, $dsn, $persistent); $this->db = null; $this->logger = $controller->getLogger(); $this->sql = $controller->getSQL(); $this->dsninfo = DB::parseDSN($dsn); $this->dsninfo['new_link'] = true; $this->type = $this->dsninfo['phptype']; }
/** * コンストラクタ * * @access public * @param object Ethna_Controller &$controller コントローラオブジェクト * @param string $dsn DSN * @param bool $persistent 持続接続設定 */ function Ethna_DB_Creole(&$controller, $dsn, $persistent) { parent::Ethna_DB($controller, $dsn, $persistent); }
/** * コンストラクタ * * @access public * @param object Ethna_Controller &$controller コントローラオブジェクト * @param string $dsn DSN * @param bool $persistent 持続接続設定 */ public function __construct($controller, $dsn, $persistent) { parent::__construct($controller, $dsn, $persistent); $this->logger = $controller->getLogger(); }
/** * コンストラクタ * * @access public * @param object Ethna_Controller &$controller コントローラオブジェクト * @param string $dsn DSN * @param bool $persistent 持続接続設定 */ function Ethna_DB_ADOdb(&$controller, $dsn, $persistent) { parent::Ethna_DB($controller, $dsn, $persistent); $this->logger =& $controller->getLogger(); }
/** * コンストラクタ * * @access public * @param object Ethna_Controller &$controller コントローラオブジェクト * @param string $dsn DSN * @param bool $persistent 持続接続設定 */ public function __construct(&$controller, $dsn, $persistent) { parent::__construct($controller, $dsn, $persistent); }
/** * Ethna_DBクラスのコンストラクタ * * @access public * @param object Ethna_Controller &$controller コントローラオブジェクト * @param string $dsn DSN * @param bool $persistent 持続接続設定 */ public function Ethna_DB_PDO(&$controller, $dsn, $persistent) { parent::Ethna_DB($controller, $dsn, $persistent); $this->dsn = $dsn; $this->persistent = $persistent; $this->db = null; $this->logger =& $controller->getLogger(); $this->sql =& $controller->getSQL(); $this->ctrlObj =& $controller; $this->configObj =& $controller->getConfig(); // add option // set return statement class if ($this->configObj->get('statement_class')) { $this->statementClass = $this->configObj->get('statement_class'); } // set initial statement if ($this->configObj->get('initial_statement')) { $this->initialStatement = $this->configObj->get('initial_statement'); } // set default fetch mode if ($this->configObj->get('default_fetchmode')) { $this->fetchMode = $this->configObj->get('default_fetchmode'); } // set default fetch Object Class if ($this->configObj->get('default_fetchclass')) { $this->setFetchClass($this->configObj->get('default_fetchclass')); } $dsnArray = self::parseDSN($dsn); $this->pdoDsn = self::buildDsn($dsnArray); $this->type = $dsnArray['phptype']; $this->username = $dsnArray['username']; $this->password = $dsnArray['password']; }