symfony API

sfDebug 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.

sfDebug provides some method to help debugging a symfony application.

Method Summary

  • array flattenParameterHolder($parameterHolder, $removeObjects)
    Returns a parameter holder as an array.
  • array globalsAsArray()
    Returns PHP globals variables as a sorted array.
  • array phpInfoAsArray()
    Returns PHP information as an array.
  • array removeObjects($values)
    Removes objects from the array by replacing them with a String containing the class name.
  • array requestAsArray($request)
    Returns request parameter holders as an array.
  • array responseAsArray($response)
    Returns response parameters as an array.
  • array settingsAsArray()
    Returns sfConfig variables as a sorted array.
  • string shortenFilePath($file)
    Shortens a file path by replacing symfony directory constants.
  • array symfonyInfoAsArray()
    Returns symfony information as an array.
  • array userAsArray($user)
    Returns user parameters as an array.

Method Details

  • (array) flattenParameterHolder ($parameterHolder, $removeObjects)

    $parameterHolder A sfParameterHolder instance
    $removeObjects when set to true, objects are removed. default is false for BC.

    Returns a parameter holder as an array.

    returns The parameter holder as an array

  • (array) globalsAsArray ()

    Returns PHP globals variables as a sorted array.

    returns PHP globals

  • (array) phpInfoAsArray ()

    Returns PHP information as an array.

    returns An array of php information

  • (array) removeObjects ($values)

    $values an array

    Removes objects from the array by replacing them with a String containing the class name.

    returns The array without objects

  • (array) requestAsArray ($request)

    $request A sfRequest instance

    Returns request parameter holders as an array.

    returns The request parameter holders

  • (array) responseAsArray ($response)

    $response A sfResponse instance

    Returns response parameters as an array.

    returns The response parameters

  • (array) settingsAsArray ()

    Returns sfConfig variables as a sorted array.

    returns sfConfig variables

  • (string) shortenFilePath ($file)

    Shortens a file path by replacing symfony directory constants.

  • (array) symfonyInfoAsArray ()

    Returns symfony information as an array.

    returns An array of symfony information

  • (array) userAsArray ($user)

    $user A sfUser instance

    Returns user parameters as an array.

    returns The user parameters