2 // vim: set binary expandtab tabstop=4 shiftwidth=4:
3 // +----------------------------------------------------------------------+
5 // +----------------------------------------------------------------------+
6 // | Copyright (c) 1997-2003 The PHP Group |
7 // +----------------------------------------------------------------------+
8 // | This source file is subject to version 2.02 of the PHP license, |
9 // | that is bundled with this package in the file LICENSE, and is |
10 // | available at through the world-wide-web at |
11 // | http://www.php.net/license/2_02.txt. |
12 // | If you did not receive a copy of the PHP license and are unable to |
13 // | obtain it through the world-wide-web, please send a note to |
14 // | license@php.net so we can mail you a copy immediately. |
15 // +----------------------------------------------------------------------+
16 // | Created: Mon Jul 14 19:30:18 2003
17 // | Author: @@author <@@email>
18 // +----------------------------------------------------------------------+
23 // +X2C Class 163 :MECON_HTML_Error
25 * Dibuja un mensaje de error en HTML.
29 class MECON_HTML_Error {
44 * @param string $msg Mensaje de error.
49 function MECON_HTML_Error($msg = '') // ~X2C
51 // TODO - hacer que se le pueda pasar un PEAR_Error y que le saque el mensaje solita.
63 function toHtml() // ~X2C
65 // FIXME - usar un estilo con class.
66 return '<DIV style="font-family: Arial; font-size: 11px; text-align: center; color: red">' . $this->msg . '</DIV>';
70 } // -X2C Class :MECON_HTML_Error