1 <?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
2 -------------------------------------------------------------------------------
3 Ministerio de EconomÃa
5 -------------------------------------------------------------------------------
6 This file is part of meconlib.
8 meconlib is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 2 of the License, or (at your option)
13 meconlib is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License; if not,
18 write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
19 Boston, MA 02111-1307 USA
20 -------------------------------------------------------------------------------
21 Created: Mon Jul 14 19:30:18 2003
22 Author: Leandro Lucarella <llucar@mecon.gov.ar>
23 -------------------------------------------------------------------------------
25 -----------------------------------------------------------------------------*/
27 // +X2C Class 163 :MECON_HTML_Error
29 * Dibuja un mensaje de error en HTML.
33 class MECON_HTML_Error {
48 * @param string $msg Mensaje de error.
53 function MECON_HTML_Error($msg = '') // ~X2C
55 // TODO - hacer que se le pueda pasar un PEAR_Error y que le saque el mensaje solita.
67 function toHtml() // ~X2C
69 // FIXME - usar un estilo con class.
70 return '<DIV style="font-family: Arial; font-size: 11px; text-align: center; color: red">' . $this->msg . '</DIV>';
74 } // -X2C Class :MECON_HTML_Error