symfony API

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

sfDebug provides some method to help debugging a symfony application.

Method Summary

  • array flattenParameterHolder((sfParameterHolder) $parameterHolder, $removeObjects = false)
    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 = null)
    Returns request parameter holders as an array.
  • array responseAsArray($response = null)
    Returns response parameters as an array.
  • array settingsAsArray()
    Returns sfConfig variables as a sorted array.
  • array symfonyInfoAsArray()
    Returns symfony information as an array.
  • array userAsArray($user = null)
    Returns user parameters as an array.

Method Details

  • (array) flattenParameterHolder ((sfParameterHolder) $parameterHolder, $removeObjects = false) Browse code

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

    Returns PHP globals variables as a sorted array.

    returns PHP globals

  • (array) phpInfoAsArray () Browse code

    Returns PHP information as an array.

    returns An array of php information

  • (array) removeObjects ($values) Browse code

    $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 = null) Browse code

    $request A sfRequest instance

    Returns request parameter holders as an array.

    returns The request parameter holders

  • (array) responseAsArray ($response = null) Browse code

    $response A sfResponse instance

    Returns response parameters as an array.

    returns The response parameters

  • (array) settingsAsArray () Browse code

    Returns sfConfig variables as a sorted array.

    returns sfConfig variables

  • (array) symfonyInfoAsArray () Browse code

    Returns symfony information as an array.

    returns An array of symfony information

  • (array) userAsArray ($user = null) Browse code

    $user A sfUser instance

    Returns user parameters as an array.

    returns The user parameters