symfony API

sfWebDebug Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.4 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.4 version. Switch to:

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.
  • sfEventDispatcher getEventDispatcher()
    Gets the event dispatcher.
  • getJavascript()
    Gets the javascript code to inject in the head tag.
  • sfVarLogger getLogger()
    Gets the logger.
  • mixed getOption($name)
    Gets an option value by name.
  • array getPanels()
    Gets the registered panels.
  • string getPriority($value)
    Converts a priority value to a string.
  • getStylesheet()
    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)
    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.

  • (sfEventDispatcher) getEventDispatcher () Browse code

    Gets the event dispatcher.

    returns The event dispatcher

  • getJavascript () Browse code

    Gets the javascript code to inject in the head tag.

  • (sfVarLogger) getLogger () Browse code

    Gets the logger.

    returns The logger instance

  • (mixed) getOption ($name) Browse code

    $name The option name

    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 () Browse 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) Browse code

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

    Constructor.


    Available options:

    * image_root_path: The image root path
    * request_parameters: The current request parameters