本文整理汇总了PHP中_adodb_getdriver函数的典型用法代码示例。如果您正苦于以下问题:PHP _adodb_getdriver函数的具体用法?PHP _adodb_getdriver怎么用?PHP _adodb_getdriver使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_adodb_getdriver函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _adodb_getdriver
function &NewDataDictionary(&$conn, $drivername = false)
{
$false = false;
if (!$drivername) {
$drivername = _adodb_getdriver($conn->dataProvider, $conn->databaseType);
}
include_once ADODB_DIR . '/adodb-lib.inc.php';
include_once ADODB_DIR . '/adodb-datadict.inc.php';
$path = ADODB_DIR . "/datadict/datadict-{$drivername}.inc.php";
if (!file_exists($path)) {
ADOConnection::outp("Dictionary driver '{$path}' not available");
return $false;
}
include_once $path;
$class = "ADODB2_{$drivername}";
$dict = new $class();
$dict->dataProvider = $conn->dataProvider;
$dict->connection =& $conn;
$dict->upperName = strtoupper($drivername);
$dict->quote = $conn->nameQuote;
if (!empty($conn->_connectionID)) {
$dict->serverInfo = $conn->ServerInfo();
}
return $dict;
}
示例2: _adodb_getdriver
function &NewDataDictionary(&$conn)
{
$drivername = _adodb_getdriver($conn->dataProvider,$conn->databaseType);
include_once(ADODB_DIR.'/adodb-lib.inc.php');
include_once(ADODB_DIR.'/adodb-datadict.inc.php');
$path = ADODB_DIR."/datadict/datadict-$drivername.inc.php";
if (!file_exists($path)) {
ADOConnection::outp("Database driver '$path' not available");
return false;
}
include_once($path);
$class = "ADODB2_$drivername";
$dict =& new $class();
$dict->dataProvider = $conn->dataProvider;
$dict->connection = &$conn;
$dict->upperName = strtoupper($drivername);
$dict->quote = $conn->nameQuote;
if (!empty($conn->_connectionID))
$dict->serverInfo = $conn->ServerInfo();
return $dict;
}