Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cDebug
  • cDebugDevNull
  • cDebugFile
  • cDebugFileAndVisAdv
  • cDebugHidden
  • cDebugVisible
  • cDebugVisibleAdv
  • cDebugVisibleAdvItem

Interfaces

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