TYPO3 API  SVNRelease
class.tx_dbal_tsparserext.php
Go to the documentation of this file.
00001 <?php
00002 /***************************************************************
00003  *  Copyright notice
00004  *
00005  *  (c) 2009-2010 Xavier Perseguers <typo3@perseguers.ch>
00006  *  All rights reserved
00007  *
00008  *  This script is part of the TYPO3 project. The TYPO3 project is
00009  *  free software; you can redistribute it and/or modify
00010  *  it under the terms of the GNU General Public License as published by
00011  *  the Free Software Foundation; either version 2 of the License, or
00012  *  (at your option) any later version.
00013  *
00014  *  The GNU General Public License can be found at
00015  *  http://www.gnu.org/copyleft/gpl.html.
00016  *  A copy is found in the textfile GPL.txt and important notices to the license
00017  *  from the author is found in LICENSE.txt distributed with these scripts.
00018  *
00019  *
00020  *  This script is distributed in the hope that it will be useful,
00021  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023  *  GNU General Public License for more details.
00024  *
00025  *  This copyright notice MUST APPEAR in all copies of the script!
00026  ***************************************************************/
00027 
00028 
00029 /**
00030  * Class that renders fields for the Extension Manager configuration.
00031  *
00032  * $Id: class.tx_dbal_tsparserext.php 40828 2010-12-05 14:55:53Z xperseguers $
00033  * @author Xavier Perseguers <typo3@perseguers.ch>
00034  *
00035  * @package TYPO3
00036  * @subpackage dbal
00037  */
00038 class tx_dbal_tsparserext {
00039 
00040     /**
00041      * Renders a message for EM.
00042      *
00043      * @param array $params
00044      * @param t3lib_tsStyleConfig $tsObj
00045      * @return string
00046      */
00047     function displayMessage(array &$params, t3lib_tsStyleConfig $tsObj) {
00048         $out = '
00049             <div>
00050                 <div class="typo3-message message-information">
00051                     <div class="message-header">PostgreSQL</div>
00052                     <div class="message-body">
00053                         If you use a PostgreSQL database, make sure to run SQL scripts located in<br />
00054                         <tt>' . t3lib_extMgm::extPath('dbal') . 'res/postgresql/</tt><br />
00055                         to ensure best compatibility with TYPO3.
00056                     </div>
00057                 </div>
00058             </div>
00059         ';
00060 
00061         return $out;
00062     }
00063 
00064 }
00065 
00066 
00067 if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/dbal/lib/class.tx_dbal_tsparserext.php'])) {
00068     include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/dbal/lib/class.tx_dbal_tsparserext.php']);
00069 }
00070 
00071 ?>