symfony API

sfWebDebug Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.2 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.2 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfWebDebug creates debug information for easy debugging in the browser.

Method Summary

  • string asHtml()
    Returns the web debug toolbar as HTML.
  • configure()
    Configures the web debug toolbar.
  • getEventDispatcher()
    Gets the event dispatcher.
  • getJavascript(0)
    Gets the javascript code to inject in the head tag.
  • getLogger()
    Gets the logger.
  • mixed getOption($name, $default = null)
    Gets an option value by name.
  • array getPanels()
    Gets the registered panels.
  • string getPriority($value)
    Converts a priority value to a string.
  • getStylesheet(0)
    Gets the stylesheet code to inject in the head tag.
  • string injectToolbar($content)
    Injects the web debug toolbar into a given HTML string.
  • removePanel($name)
    Removes a panel by name.
  • setPanel($name, $panel)
    Sets a panel by name.
  • __construct($dispatcher, $logger, $options = array())
    Constructor.

Method Details

  • (string) asHtml () Browse code

    Returns the web debug toolbar as HTML.

    returns The web debug toolbar HTML

  • configure () Browse code

    Configures the web debug toolbar.

  • getEventDispatcher () Browse code

    Gets the event dispatcher.

    returns The event dispatcher

  • getJavascript (0) Browse code

    0 The javascript code

    Gets the javascript code to inject in the head tag.

  • getLogger () Browse code

    Gets the logger.

    returns The logger instance

  • (mixed) getOption ($name, $default = null) Browse code

    $name The option name
    $default

    Gets an option value by name.

    returns The option value

  • (array) getPanels () Browse code

    Gets the registered panels.

    returns The panels

  • (string) getPriority ($value) Browse code

    $value The priority value

    Converts a priority value to a string.

    returns The priority as a string

  • getStylesheet (0) Browse code

    0 The stylesheet code

    Gets the stylesheet code to inject in the head tag.

  • (string) injectToolbar ($content) Browse code

    $content The HTML content

    Injects the web debug toolbar into a given HTML string.

    returns The content with the web debug toolbar injected

  • removePanel ($name) Browse code

    $name The panel name

    Removes a panel by name.

  • setPanel ($name, $panel) Browse code

    $name The panel name
    $panel The panel

    Sets a panel by name.

  • __construct ($dispatcher, $logger, $options = array()) Browse code

    $dispatcher The event dispatcher
    $logger The logger
    $options An array of options

    Constructor.


    Available options:

    * image_root_path: The image root path