symfony API

sfResponse Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.0 API OpenSearch

Packages

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

sfResponse provides methods for manipulating client response information such

Inheritence

sfWebResponse, sfConsoleResponse  <  sfResponse

Method Summary

  • string getContent()
    Gets the current response content
  • sfContext getContext()
    Retrieves the current application context.
  • mixed getParameter(, , )
    Retrieves a parameter from the current response.
  • sfParameterHolder getParameterHolder()
    Retrieves the parameters from the current response.
  • boolean hasParameter(, )
    Indicates whether or not a parameter exist for the current response.
  • boolean initialize()
    Initializes this sfResponse.
  • sfResponse newInstance()
    Retrieves a new sfResponse implementation instance.
  • sendContent()
    Outputs the response content
  • setContent()
    Sets the response content
  • setContext()
    Sets the context for the current response.
  • setParameter(, , )
    Sets a parameter for the current response.
  • shutdown()
    Executes the shutdown procedure.
  • mixed __call(, )
    Overloads a given method.

Method Details

  • (string) getContent () Browse code

    Gets the current response content

    returns Content

  • (sfContext) getContext () Browse code

    Retrieves the current application context.

    returns The application context

  • (mixed) getParameter (, , ) Browse code

    Retrieves a parameter from the current response.

    returns A parameter value

  • (sfParameterHolder) getParameterHolder () Browse code

    Retrieves the parameters from the current response.

    returns List of parameters

  • (boolean) hasParameter (, ) Browse code

    Indicates whether or not a parameter exist for the current response.

    returns true, if the parameter exists otherwise false

  • (boolean) initialize () Browse code

    Initializes this sfResponse.

    returns true, if initialization completes successfully, otherwise false

    throws sfInitializationException If an error occurs while initializing this Response

  • (sfResponse) newInstance () Browse code

    Retrieves a new sfResponse implementation instance.

    returns A sfResponse implementation instance

    throws sfFactoryException If a request implementation instance cannot be created

  • sendContent () Browse code

    Outputs the response content

  • setContent () Browse code

    Sets the response content

  • setContext () Browse code

    Sets the context for the current response.

  • setParameter (, , ) Browse code

    Sets a parameter for the current response.

  • shutdown () Browse code

    Executes the shutdown procedure.

  • (mixed) __call (, ) Browse code

    Overloads a given method.

    returns User function callback

    throws sfException If the calls fails