07370f750c399424c383184a1185403f37056597
[Packages/TYPO3.CMS.git] / typo3 / sysext / adodb / class.tx_adodb_tceforms.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 2004 Robert Lemke (robert@typo3.org)
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 *
17 * This script is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * This copyright notice MUST APPEAR in all copies of the script!
23 ***************************************************************/
24
25 /**
26 * @author Robert Lemke <robert@typo3.org>
27 */
28 class tx_adodb_tceforms {
29
30 function itemsProcFunc_dbtype(&$params, &$pObj) {
31 if (is_callable('sybase_get_last_message')) $params['items'][] = array ('Sybase', 'sybase');
32 if (is_callable('odbc_error')) $params['items'][] = array ('ODBC', 'odbc');
33 if (is_callable('mysql_error')) $params['items'][] = array ('MySQL', 'mysql');
34 if (is_callable('mssql_connect')) $params['items'][] = array ('MSSQL', 'mssql');
35 }
36 }
37
38 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/adodb/class.tx_adodb_tceforms.php']) {
39 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/adodb/class.tx_adodb_tceforms.php']);
40 }
41
42 ?>