/[cvs]/nfo/php/libs/org.netfrag.glib/utils/debug.php
ViewVC logotype

Contents of /nfo/php/libs/org.netfrag.glib/utils/debug.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Sat Apr 5 19:53:45 2003 UTC (21 years, 3 months ago) by joko
Branch: MAIN
CVS Tags: HEAD
moved here from ../

1 <?php
2
3 /**
4 * This file contains the class 'debug'. A container for procedural methods.
5 *
6 * @author Andreas Motl <andreas.motl@ilo.de>
7 * @package org.netfrag.glib
8 * @name debug
9 *
10 */
11
12 /**
13 * $Id: php_constants.php,v 1.1 2003/03/28 06:43:20 joko Exp $
14 *
15 * $Log: php_constants.php,v $
16 *
17 */
18
19 /**
20 * --- debugging functions, debug:: namespace
21 *
22 *
23 * @author Andreas Motl <andreas.motl@ilo.de>
24 * @copyright (c) 2003 - All Rights reserved.
25 * @license GNU LGPL (GNU Lesser General Public License)
26 *
27 * @link http://www.netfrag.org/~joko/
28 * @link http://www.gnu.org/licenses/lgpl.txt
29 *
30 * @package org.netfrag.glib
31 * @name const
32 *
33 *
34 */
35 class debug {
36
37 function warn() {
38 $parts = func_get_args();
39 // V1
40 //user_error ( join('<br/>', $parts), E_USER_WARNING );
41 // V2
42 trigger_error ( join('<br/>', $parts), E_USER_ERROR );
43 //Error('Some error message', __LINE__, __FILE__);
44 }
45
46 function info() {
47 $parts = func_get_args();
48 //print "info: " . Dumper($parts);
49 //errors::add_trace($parts);
50 //user_error ( join('<br/>', $parts), E_USER_NOTICE );
51 //trigger_error ( join('<br/>', $parts), E_USER_NOTICE );
52 Tracer::event(array( code => '678', type => constants::get('PHP_ERRORS_BOX_TYPE'), payload => $parts ));
53 }
54
55 }
56
57 ?>

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed