symfony API

sfResponse 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.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 ()

    Gets the current response content

    returns Content

  • (sfContext) getContext ()

    Retrieves the current application context.

    returns The application context

  • (mixed) getParameter (, , )

    Retrieves a parameter from the current response.

    returns A parameter value

  • (sfParameterHolder) getParameterHolder ()

    Retrieves the parameters from the current response.

    returns List of parameters

  • (boolean) hasParameter (, )

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

    returns true, if the parameter exists otherwise false

  • (boolean) initialize ()

    Initializes this sfResponse.

    returns true, if initialization completes successfully, otherwise false

    throws sfInitializationException If an error occurs while initializing this Response

  • (sfResponse) newInstance ()

    Retrieves a new sfResponse implementation instance.

    returns A sfResponse implementation instance

    throws sfFactoryException If a request implementation instance cannot be created

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

    returns User function callback

    throws sfException If the calls fails