Documentation TYPO3 par Ameos |
00001 <?php 00002 /* 00003 V4.93 10 Oct 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved. 00004 Released under both BSD license and Lesser GPL library license. 00005 Whenever there is any discrepancy between the two licenses, 00006 the BSD license will take precedence. See License.txt. 00007 Set tabs to 4 for best viewing. 00008 00009 Latest version is available at http://adodb.sourceforge.net 00010 00011 Microsoft Access ADO data driver. Requires ADO and ODBC. Works only on MS Windows. 00012 */ 00013 00014 // security - hide paths 00015 if (!defined('ADODB_DIR')) die(); 00016 00017 if (!defined('_ADODB_ADO_LAYER')) { 00018 if (PHP_VERSION >= 5) include(ADODB_DIR."/drivers/adodb-ado5.inc.php"); 00019 else include(ADODB_DIR."/drivers/adodb-ado.inc.php"); 00020 } 00021 00022 class ADODB_ado_access extends ADODB_ado { 00023 var $databaseType = 'ado_access'; 00024 var $hasTop = 'top'; // support mssql SELECT TOP 10 * FROM TABLE 00025 var $fmtDate = "#Y-m-d#"; 00026 var $fmtTimeStamp = "#Y-m-d h:i:sA#";// note no comma 00027 var $sysDate = "FORMAT(NOW,'yyyy-mm-dd')"; 00028 var $sysTimeStamp = 'NOW'; 00029 var $hasTransactions = false; 00030 00031 function ADODB_ado_access() 00032 { 00033 $this->ADODB_ado(); 00034 } 00035 00036 function BeginTrans() { return false;} 00037 00038 function CommitTrans() { return false;} 00039 00040 function RollbackTrans() { return false;} 00041 00042 } 00043 00044 00045 class ADORecordSet_ado_access extends ADORecordSet_ado { 00046 00047 var $databaseType = "ado_access"; 00048 00049 function ADORecordSet_ado_access($id,$mode=false) 00050 { 00051 return $this->ADORecordSet_ado($id,$mode); 00052 } 00053 } 00054 ?>