當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Connection::assignConnectionParams方法代碼示例

本文整理匯總了PHP中Connection::assignConnectionParams方法的典型用法代碼示例。如果您正苦於以下問題:PHP Connection::assignConnectionParams方法的具體用法?PHP Connection::assignConnectionParams怎麽用?PHP Connection::assignConnectionParams使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Connection的用法示例。


在下文中一共展示了Connection::assignConnectionParams方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: assignConnectionParams

 /**
  * Set db connection's properties
  * @param Array params
  */
 protected function assignConnectionParams($params)
 {
     parent::assignConnectionParams($params);
     $this->ODBCString = $params["ODBCString"];
     $this->ODBCUID = $params["ODBCUID"];
     $this->ODBCPWD = $params["ODBCPWD"];
 }
開發者ID:ryanblanchard,項目名稱:Dashboard,代碼行數:11,代碼來源:ODBCConnection.php

示例2: assignConnectionParams

 /**
  * Set db connection's properties
  * @param Array params
  */
 protected function assignConnectionParams($params)
 {
     parent::assignConnectionParams($params);
     $this->user = $params["connInfo"][0];
     //strConnectInfo1
     $this->pwd = $params["connInfo"][1];
     //strConnectInfo2
     $this->sid = $params["connInfo"][2];
     //strConnectInfo3
 }
開發者ID:ryanblanchard,項目名稱:Dashboard,代碼行數:14,代碼來源:OracleConnection.php

示例3: assignConnectionParams

 /**
  * Set db connection's properties
  * @param Array params
  */
 protected function assignConnectionParams($params)
 {
     parent::assignConnectionParams($params);
     $this->host = $params["connInfo"][0];
     //strConnectInfo1
     $this->user = $params["connInfo"][1];
     //strConnectInfo2
     $this->pwd = $params["connInfo"][2];
     //strConnectInfo3
     $this->port = $params["connInfo"][3];
     //strConnectInfo4
     $this->sys_dbname = $params["connInfo"][4];
     //strConnectInfo5
 }
開發者ID:kcallow,項目名稱:MatchMe,代碼行數:18,代碼來源:MySQLConnection.php

示例4: assignConnectionParams

 /**
  * Set db connection's properties
  * @param Array params
  */
 protected function assignConnectionParams($params)
 {
     parent::assignConnectionParams($params);
     $host = pg_escape_string($params["connInfo"][0]);
     //strConnectInfo1
     $user = pg_escape_string($params["connInfo"][1]);
     //strConnectInfo2
     $password = pg_escape_string($params["connInfo"][2]);
     //strConnectInfo3
     $dbname = pg_escape_string($params["connInfo"][4]);
     //strConnectInfo5
     $options = $params["connInfo"][3];
     //strConnectInfo4
     $this->connstr = "host='" . $host . "' user='" . $user . "' password='" . $password . "' dbname='" . $dbname . "' " . $options;
 }
開發者ID:ryanblanchard,項目名稱:Dashboard,代碼行數:19,代碼來源:PostgreConnection.php

示例5: assignConnectionParams

 /**
  * Set db connection's properties
  * @param Array params
  */
 protected function assignConnectionParams($params)
 {
     parent::assignConnectionParams($params);
     $this->host = $params["connInfo"][0];
     //strConnectInfo1
     if ($params["connInfo"][2] == "SSPI") {
         $this->dbname = $params["connInfo"][1];
         //strConnectInfo2
         $this->options = $params["connInfo"][2];
         //strConnectInfo3
     } else {
         $this->user = $params["connInfo"][1];
         //strConnectInfo2
         $this->pwd = $params["connInfo"][2];
         //strConnectInfo3
         $this->dbname = $params["connInfo"][3];
         //strConnectInfo4
     }
 }
開發者ID:ryanblanchard,項目名稱:Dashboard,代碼行數:23,代碼來源:MSSQLSrvConnection.php

示例6: assignConnectionParams

 /**
  * Set db connection's properties
  * @param Array params
  */
 protected function assignConnectionParams($params)
 {
     parent::assignConnectionParams($params);
     $this->dbname = $params["connInfo"][0];
     // strConnectInfo1
 }
開發者ID:ryanblanchard,項目名稱:Dashboard,代碼行數:10,代碼來源:SQLite3Connection.php


注:本文中的Connection::assignConnectionParams方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。