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 hidden debug class.
  5:  *
  6:  * @package Core
  7:  * @subpackage Debug
  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 show info hidden in HTML comment-blocks.
 20:  *
 21:  * @package Core
 22:  * @subpackage Debug
 23:  */
 24: class cDebugHidden implements cDebugInterface {
 25: 
 26:     /**
 27:      * Singleton instance
 28:      *
 29:      * @var cDebugHidden
 30:      */
 31:     private static $_instance;
 32: 
 33:     /**
 34:      * Return singleton instance.
 35:      *
 36:      * @return cDebugHidden
 37:      */
 38:     static public function getInstance() {
 39:         if (self::$_instance == NULL) {
 40:             self::$_instance = new cDebugHidden();
 41:         }
 42:         return self::$_instance;
 43:     }
 44: 
 45:     /**
 46:      * Constructor to create an instance of this class.
 47:      */
 48:     private function __construct() {
 49:     }
 50: 
 51:     /**
 52:      * Writes a line.
 53:      *
 54:      * @see cDebugInterface::out()
 55:      * @param string $msg
 56:      */
 57:     public function out($msg) {
 58:         echo ("\n <!-- dbg\n");
 59:         echo ($msg);
 60:         echo ("\n-->");
 61:     }
 62: 
 63:     /**
 64:      * Outputs contents of passed variable in a preformatted, readable way
 65:      *
 66:      * @param mixed $mVariable
 67:      *         The variable to be displayed
 68:      * @param string $sVariableDescription [optional]
 69:      *         The variable's name or description
 70:      * @param bool $bExit [optional]
 71:      *         If set to true, your app will die() after output of current var
 72:      */
 73:     public function show($mVariable, $sVariableDescription = '', $bExit = false) {
 74:         echo "\n <!-- dbg";
 75:         if ($sVariableDescription != '') {
 76:             echo ' ' . strval($sVariableDescription);
 77:         }
 78:         echo " -->\n";
 79:         echo '<!--' . "\n";
 80:         if (is_array($mVariable)) {
 81:             print_r($mVariable);
 82:         } else {
 83:             var_dump($mVariable);
 84:         }
 85:         echo "\n" . '//-->' . "\n";
 86:         echo "\n <!-- /dbg -->\n";
 87: 
 88:         if ($bExit === true) {
 89:             die();
 90:         }
 91:     }
 92: 
 93:     /**
 94:      * Interface implementation
 95:      *
 96:      * @param mixed $mVariable
 97:      * @param string $sVariableDescription [optional]
 98:      */
 99:     public function add($mVariable, $sVariableDescription = '') {
100:     }
101: 
102:     /**
103:      * Interface implementation
104:      */
105:     public function reset() {
106:     }
107: 
108:     /**
109:      * Interface implementation
110:      */
111:     public function showAll() {
112:     }
113: }
114: 
CMS CONTENIDO 4.9.11 API documentation generated by ApiGen 2.8.0