]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - config/nagiosql/pear/HTML/Template/IT_Error.php
add NagiosQl for Webconfig Nagios
[people/pmueller/ipfire-2.x.git] / config / nagiosql / pear / HTML / Template / IT_Error.php
1 <?php
2 /**
3 * Integrated Template - IT
4 *
5 * PHP version 4
6 *
7 * Copyright (c) 1997-2007 Ulf Wendel, Pierre-Alain Joye,
8 * David Soria Parra
9 *
10 * This source file is subject to the New BSD license, That is bundled
11 * with this package in the file LICENSE, and is available through
12 * the world-wide-web at
13 * http://www.opensource.org/licenses/bsd-license.php
14 * If you did not receive a copy of the new BSDlicense and are unable
15 * to obtain it through the world-wide-web, please send a note to
16 * pajoye@php.net so we can mail you a copy immediately.
17 *
18 * Author: Ulf Wendel <ulf.wendel@phpdoc.de>
19 * Pierre-Alain Joye <pajoye@php.net>
20 * David Soria Parra <dsp@php.net>
21 *
22 * @category HTML
23 * @package HTML_Template_IT
24 * @author Ulf Wendel <uw@netuse.de>
25 * @license BSD http://www.opensource.org/licenses/bsd-license.php
26 * @version CVS: $Id: IT_Error.php,v 1.4 2008/11/09 12:30:27 clockwerx Exp $
27 * @link http://pear.php.net/packages/HTML_Template_IT
28 * @access public
29 */
30
31 require_once "PEAR.php";
32
33 /**
34 * IT[X] Error class
35 *
36 * @category HTML
37 * @package HTML_Template_IT
38 * @author Ulf Wendel <uw@netuse.de>
39 * @license BSD http://www.opensource.org/licenses/bsd-license.php
40 * @link http://pear.php.net/packages/HTML_Template_IT
41 * @access public
42 */
43 class IT_Error extends PEAR_Error
44 {
45 /**
46 * Prefix of all error messages.
47 *
48 * @var string
49 */
50 var $error_message_prefix = "IntegratedTemplate Error: ";
51
52 /**
53 * Creates an cache error object.
54 *
55 * @param string $msg error message
56 * @param string $file file where the error occured
57 * @param string $line linenumber where the error occured
58 */
59 function IT_Error($msg, $file = __FILE__, $line = __LINE__)
60 {
61 $this->PEAR_Error(sprintf("%s [%s on line %d].", $msg, $file, $line));
62 } // end func IT_Error
63
64 } // end class IT_Error
65 ?>