symfony API

sfWebDebug Class

« Back to API menu

action

addon

cache

config

controller

countable

database

debug

exception

filter

generator

helper

i18n

log

request

response

storage

test

user

util

validator

view

You are currently browsing the symfony documentation for the 1.0 version. Switch to:

sfWebDebug creates debug information for easy debugging in the browser.

Method Summary

  • string getCurrentConfigAsHtml()
    Returns the current configuration as HTML.
  • string formatArrayAsHtml($id, $values)
    Converts an array to HTML.
  • getInstance()
    Retrieves the singleton instance of this class.
  • string getPriority($value)
    Converts a priority value to a string.
  • string formatLogLine($log_line)
    Formats a log line.
  • loadHelpers()
    Loads helpers needed for the web debug toolbar.
  • initialize()
  • logShortMessage($message)
    Logs a short message to be displayed in the web debug toolbar.
  • string getResults()
    Returns the web debug toolbar as HTML.
  • log($logEntry)
    Logs a message to the web debug toolbar.
  • string decorateContentWithDebug($internalUri, $content, $new = false)
    Decorates a chunk of HTML with cache information.
  • registerAssets()
    Registers javascripts and stylesheets needed for the web debug toolbar.

Method Details

  • (string) getCurrentConfigAsHtml ()

    Returns the current configuration as HTML.

    returns The current configuration as HTML

  • (string) formatArrayAsHtml ($id, $values)

    $id The identifier to use
    $values The array of values

    Converts an array to HTML.

    returns An HTML string

  • getInstance ()

    Retrieves the singleton instance of this class.

    returns A sfWebDebug implementation instance

  • (string) getPriority ($value)

    $value The priority value

    Converts a priority value to a string.

    returns The priority as a string

  • (string) formatLogLine ($log_line)

    $log_line The log line to format

    Formats a log line.

    returns The formatted log lin

  • loadHelpers ()

    Loads helpers needed for the web debug toolbar.

  • initialize ()

  • logShortMessage ($message)

    $message The message string

    Logs a short message to be displayed in the web debug toolbar.

  • (string) getResults ()

    Returns the web debug toolbar as HTML.

    returns The web debug toolbar HTML

  • log ($logEntry)

    $logEntry An array of parameter

    Logs a message to the web debug toolbar.

  • (string) decorateContentWithDebug ($internalUri, $content, $new = false)

    $internalUri The internalUri representing the content
    $content The HTML content
    $new true if the content is new in the cache, false otherwise

    Decorates a chunk of HTML with cache information.

    returns The decorated HTML string

  • registerAssets ()

    Registers javascripts and stylesheets needed for the web debug toolbar.