Updated copyright year
[Packages/TYPO3.CMS.git] / typo3 / sysext / dbal / lib / class.tx_dbal_tsparserext.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 2009-2010 Xavier Perseguers <typo3@perseguers.ch>
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 * A copy is found in the textfile GPL.txt and important notices to the license
17 * from the author is found in LICENSE.txt distributed with these scripts.
18 *
19 *
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
27
28
29 /**
30 * Class that renders fields for the Extension Manager configuration.
31 *
32 * $Id$
33 * @author Xavier Perseguers <typo3@perseguers.ch>
34 *
35 * @package TYPO3
36 * @subpackage dbal
37 */
38 class tx_dbal_tsparserext {
39
40 /**
41 * Renders a message for EM.
42 *
43 * @param array $params
44 * @param t3lib_tsStyleConfig $tsObj
45 * @return string
46 */
47 function displayMessage(array &$params, t3lib_tsStyleConfig $tsObj) {
48 $out = '
49 <div>
50 <div class="typo3-message message-information">
51 <div class="message-header">PostgreSQL</div>
52 <div class="message-body">
53 If you use a PostgreSQL database, make sure to run SQL scripts located in<br />
54 <tt>' . t3lib_extMgm::extPath('dbal') . 'res/postgresql/</tt><br />
55 to ensure best compatibility with TYPO3.
56 </div>
57 </div>
58 </div>
59 ';
60
61 return $out;
62 }
63
64 }
65
66
67 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dbal/lib/class.tx_dbal_tsparserext.php']) {
68 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dbal/lib/class.tx_dbal_tsparserext.php']);
69 }
70
71 ?>