Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationMain
    • NavigationTop
  • 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:  * This file contains the hidden 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 show info hidden in HTML comment-blocks.
 20:  *
 21:  * @package    Core
 22:  * @subpackage Debug
 23:  */
 24: class cDebugHidden implements cDebugInterface {
 25: 
 26:     private static $_instance;
 27: 
 28:     /**
 29:      * Constructor
 30:      */
 31:     private function __construct() {
 32:     }
 33: 
 34:     /**
 35:      * static
 36:      */
 37:     static public function getInstance() {
 38:         if (self::$_instance == null) {
 39:             self::$_instance = new cDebugHidden();
 40:         }
 41:         return self::$_instance;
 42:     }
 43: 
 44:     public function out($msg) {
 45:         echo ("\n <!-- dbg\n");
 46:         echo ($msg);
 47:         echo ("\n-->");
 48:     }
 49: 
 50:     /**
 51:      * Outputs contents of passed variable in a preformatted, readable way
 52:      *
 53:      * @param mixed $mVariable The variable to be displayed
 54:      * @param string $sVariableDescription The variable's name or description
 55:      * @param boolean $bExit If set to true, your app will die() after output of
 56:      *        current var
 57:      */
 58:     public function show($mVariable, $sVariableDescription = '', $bExit = false) {
 59:         echo "\n <!-- dbg";
 60:         if ($sVariableDescription != '') {
 61:             echo ' ' . strval($sVariableDescription);
 62:         }
 63:         echo " -->\n";
 64:         echo '<!--' . "\n";
 65:         if (is_array($mVariable)) {
 66:             print_r($mVariable);
 67:         } else {
 68:             var_dump($mVariable);
 69:         }
 70:         echo "\n" . '//-->' . "\n";
 71:         echo "\n <!-- /dbg -->\n";
 72: 
 73:         if ($bExit === true) {
 74:             die();
 75:         }
 76:     }
 77: 
 78:     /**
 79:      * Interface implementation
 80:      *
 81:      * @param mixed $mVariable
 82:      * @param string $sVariableDescription
 83:      */
 84:     public function add($mVariable, $sVariableDescription = '') {
 85:     }
 86: 
 87:     /**
 88:      * Interface implementation
 89:      */
 90:     public function reset() {
 91:     }
 92: 
 93:     /**
 94:      * Interface implementation
 95:      */
 96:     public function showAll() {
 97:     }
 98: 
 99: }
100: 
CMS CONTENIDO 4.9.0 API documentation generated by ApiGen 2.8.0