symfony API

sfDebug Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.3 API OpenSearch

Packages

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

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

    $request A sfRequest instance

    Returns request parameter holders as an array.

    returns The request parameter holders

  • (array) responseAsArray ($response) 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

  • (string) shortenFilePath ($file) Browse code

    Shortens a file path by replacing symfony directory constants.

  • (array) symfonyInfoAsArray () Browse code

    Returns symfony information as an array.

    returns An array of symfony information

  • (array) userAsArray ($user) Browse code

    $user A sfUser instance

    Returns user parameters as an array.

    returns The user parameters