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
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • PHP
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SIWECOS
    • 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

Class cDebugVisibleAdv

Debug object to show info on screen in a box / HTML Block at the top of page. Instead of doing the output immediately using method show, values can be collected and printed to screen in one go. Therefore there's a box positioned at the left top of the page that can be toggled and hidden.

Please note: When using method Debug_VisibleAdv::showAll() you'll produce invalid HTML when having an XHTML doctype.

cDebugVisibleAdv implements cDebugInterface, Countable

Direct known subclasses

cDebugFileAndVisAdv
Package: Core\Debug
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Rudi Bieller
Located at classes/debug/class.debug.visible.adv.php
Methods summary
public static cDebugVisibleAdv
# getInstance( )

Return singleton instance.

Return singleton instance.

Returns

cDebugVisibleAdv

Implementation of

cDebugInterface::getInstance()
private
# __construct( )

Constructor to create an instance of this class.

Constructor to create an instance of this class.

public
# add( mixed $mVariable, string $sVariableDescription = '' )

Add a Debug item to internal collection.

Add a Debug item to internal collection.

Parameters

$mVariable
mixed
$mVariable
$sVariableDescription
string
$sVariableDescription [optional]

Implementation of

cDebugInterface::add()
public
# reset( )

Reset internal collection with Debug items.

Reset internal collection with Debug items.

Implementation of

cDebugInterface::reset()
public
# out( string $sText )

Writes a line.

Writes a line.

Parameters

$sText
string
$sText

See

cDebugInterface::out()

Implementation of

cDebugInterface::out()
public
# showAll( )

Outputs all Debug items in collection to screen in a HTML Box at left top of page.

Outputs all Debug items in collection to screen in a HTML Box at left top of page.

Throws

cInvalidArgumentException

Implementation of

cDebugInterface::showAll()
private string
# _prepareValue( mixed $mValue )

Prepares Debug item value for output as string representation.

Prepares Debug item value for output as string representation.

Parameters

$mValue
mixed
$mValue

Returns

string
public integer
# count( )

Implemenation of Countable interface

Implemenation of Countable interface

Returns

integer

Implementation of

Countable::count()
public
# show( mixed $mVariable, string $sVariableDescription = '', boolean $bExit = false )

Outputs contents of passed variable in a preformatted, readable way.

Outputs contents of passed variable in a preformatted, readable way.

Parameters

$mVariable
mixed
$mVariable The variable to be displayed.
$sVariableDescription
string
$sVariableDescription [optional] The variable's name or description.
$bExit
boolean
$bExit [optional] If set to true, your app will die() after output of current var.

Implementation of

cDebugInterface::show()
Properties summary
private static cDebugVisibleAdv $_instance
#

Singleton instance

Singleton instance

private array $_aItems
#
private string $_buffer
#
CMS CONTENIDO 4.10.1 API documentation generated by ApiGen 2.8.0