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


PHP _adodb_getdriver函數代碼示例

本文整理匯總了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;
 }
開發者ID:dasatti,項目名稱:dashboard,代碼行數:25,代碼來源:adodb.inc.php

示例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;
	}
開發者ID:songchin,項目名稱:Cacti,代碼行數:24,代碼來源:adodb.inc.php


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