本文整理匯總了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"];
}
示例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
}
示例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
}
示例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;
}
示例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
}
}
示例6: assignConnectionParams
/**
* Set db connection's properties
* @param Array params
*/
protected function assignConnectionParams($params)
{
parent::assignConnectionParams($params);
$this->dbname = $params["connInfo"][0];
// strConnectInfo1
}