本文整理匯總了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;
}