1: <?php
2: /**
3: * This file contains the dev null debug class.
4: *
5: * @package Core
6: * @subpackage Debug
7: * @version SVN Revision $Rev:$
8: *
9: * @author Rudi Bieller
10: * @copyright four for business AG <www.4fb.de>
11: * @license http://www.contenido.org/license/LIZENZ.txt
12: * @link http://www.4fb.de
13: * @link http://www.contenido.org
14: */
15:
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17:
18: /**
19: * Debug object to not output info at all.
20: * Note: Be careful when using $bExit = true as this will NOT cause a die() in
21: * this object!
22: *
23: * @package Core
24: * @subpackage Debug
25: */
26: class cDebugDevNull implements cDebugInterface {
27:
28: private static $_instance;
29:
30: /**
31: * Constructor
32: */
33: private function __construct() {
34: }
35:
36: public function out($msg) {
37: }
38:
39: /**
40: * static
41: */
42: public static function getInstance() {
43: if (self::$_instance == null) {
44: self::$_instance = new cDebugDevNull();
45: }
46: return self::$_instance;
47: }
48:
49: /**
50: * Outputs contents of passed variable to /dev/null
51: *
52: * @param mixed $mVariable The variable to be displayed
53: * @param string $sVariableDescription The variable's name or description
54: * @param boolean $bExit If set to true, your app will NOT die() after
55: * output of current var
56: */
57: public function show($mVariable, $sVariableDescription = '', $bExit = false) {
58: }
59:
60: /**
61: * Interface implementation
62: *
63: * @param mixed $mVariable
64: * @param string $sVariableDescription
65: */
66: public function add($mVariable, $sVariableDescription = '') {
67: }
68:
69: /**
70: * Interface implementation
71: */
72: public function reset() {
73: }
74:
75: /**
76: * Interface implementation
77: */
78: public function showAll() {
79: }
80:
81: }