本文整理汇总了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
}