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
    • 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

Class cDebug

Debugger class

Package: Core\Debug
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Rudi Bieller
Author: Murat Purc <murat@purc.de>
Located at classes/debug/class.debug.php
Methods summary
public static cDebugInterface
# getDebugger( string $sType = '' )

Returns instance of debugger. If not defined, it returns the debugger from the current system settings.

Returns instance of debugger. If not defined, it returns the debugger from the current system settings.

Parameters

$sType
string
$sType The debugger to get, empty string to get debugger defined in system settings

Returns

cDebugInterface

Throws

cInvalidArgumentException
If type of debugger is unknown
public static
# out( string $message )

Prints a debug message if the settings allow it. The debug messages will be in a textrea in the header and in the file debuglog.txt. All messages are immediately written to the filesystem but they will only show up when cDebug::showAll() is called.

Prints a debug message if the settings allow it. The debug messages will be in a textrea in the header and in the file debuglog.txt. All messages are immediately written to the filesystem but they will only show up when cDebug::showAll() is called.

Parameters

$message
string
$message Message to display. NOTE: You can use buildStackString to show stacktraces
public static
# add( mixed $var, string $label = '' )

Adds a variable to the debugger. This variable will be watched.

Adds a variable to the debugger. This variable will be watched.

Parameters

$var
mixed
$var A variable or an object
$label
string
$label An optional description for the variable
public static
# showAll( )

Prints the cached debug messages to the screen

Prints the cached debug messages to the screen

public static string
# getDefaultDebuggerName( )

Returns default debugger name.

Returns default debugger name.

Returns

string
protected static string
# _getSystemSettingDebugger( )

Returns the debugger defined in system settings.

Returns the debugger defined in system settings.

Returns

string
Constants summary
string DEBUGGER_VISIBLE 'visible'
#
string DEBUGGER_VISIBLE_ADV 'visible_adv'
#
string DEBUGGER_HIDDEN 'hidden'
#
string DEBUGGER_FILE 'file'
#
string DEBUGGER_VISIBLE_AND_FILE 'vis_and_file'
#
string DEBUGGER_DEVNULL 'devnull'
#
Properties summary
protected static string $_defaultDebuggerName
#

Default debugger, defined in system settings

Default debugger, defined in system settings

CMS CONTENIDO 4.9.3 API documentation generated by ApiGen 2.8.0