symfony API

sfWebDebugPanel Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

Packages

You are currently browsing the symfony API for the 1.4 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.

sfWebDebugPanel represents a web debug panel.

Method Summary

  • string formatFileLink($file, $line, $text)
    Formats a file link.
  • string formatSql($sql)
    Format a SQL string with some colors on SQL keywords to make it more readable.
  • string getPanelContent()
    Gets the panel HTML content.
  • string getPanelTitle()
    Gets the title of the panel.
  • integer getStatus()
    Returns the current status.
  • string getTitle()
    Gets the text for the link.
  • string getTitleUrl()
    Gets the link URL for the link.
  • string getToggleableDebugStack($debugStack)
    Returns a toggleable presentation of a debug stack.
  • string getToggler($element, $title)
    Returns a toggler element.
  • setStatus($status)
    Sets the current panel's status.
  • __construct($webDebug)
    Constructor.

Method Details

  • (string) formatFileLink ($file, $line, $text)

    $file A file path or class name
    $text Text to use for the link

    Formats a file link.

  • (string) formatSql ($sql)

    $sql SQL string to format

    Format a SQL string with some colors on SQL keywords to make it more readable.

    returns $newSql The new formatted SQL string

  • (string) getPanelContent ()

    Gets the panel HTML content.

    returns The panel HTML content

  • (string) getPanelTitle ()

    Gets the title of the panel.

    returns The panel title

  • (integer) getStatus ()

    Returns the current status.

    returns A {@link sfLogger} priority constant

  • (string) getTitle ()

    Gets the text for the link.

    returns The link text

  • (string) getTitleUrl ()

    Gets the link URL for the link.

    returns The URL link

  • (string) getToggleableDebugStack ($debugStack)

    Returns a toggleable presentation of a debug stack.

  • (string) getToggler ($element, $title)

    $element The value of an element's DOM id attribute
    $title A title attribute

    Returns a toggler element.

  • setStatus ($status)

    $status A {@link sfLogger} priority constant

    Sets the current panel's status.

  • __construct ($webDebug)

    $webDebug The web debug toolbar instance

    Constructor.