symfony API

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

sfWebResponse class.

Inheritence

sfWebResponse  <  sfResponse

Method Summary

Methods inherited from sfResponse

getContent , getContext , getParameter , getParameterHolder , hasParameter , initialize , newInstance , sendContent , setContent , setContext , setParameter , shutdown , __call

Method Details

  • addCacheControlHttpHeader (, ) Browse code

    Adds an control cache http header.

  • addHttpMeta (, , ) Browse code

    Adds meta headers to the current web response.

  • addJavascript (, ) Browse code

    Adds javascript code to the current web response.

  • addMeta (, , , ) Browse code

    Adds a meta header to the current web response.

  • addStylesheet (, , ) Browse code

    Adds an stylesheet to the current web response.

  • addVaryHttpHeader () Browse code

    Adds vary to a http header.

  • clearHttpHeaders () Browse code

    Cleans HTTP headers from the current web response.

  • (array) getContentType () Browse code

    Gets response content type.

  • (array) getCookies () Browse code

    Retrieves cookies from the current web response.

    returns Cookies

  • (string) getDate (, ) Browse code

    Retrieves a formated date.

    returns Formated date

  • (string) getHttpHeader () Browse code

    Gets HTTP header current value.

  • (string) getHttpHeaders () Browse code

    Retrieves HTTP headers from the current web response.

    returns HTTP headers

  • (string) getHttpMetas () Browse code

    Retrieves meta headers for the current web response.

    returns Meta headers

  • (string) getJavascripts () Browse code

    Retrieves javascript code from the current web response.

    returns Javascript code

  • (array) getMetas () Browse code

    Retrieves all meta headers for the current web response.

    returns List of meta headers

  • (string) getStatusCode () Browse code

    Retrieves status code for the current web response.

    returns Status code

  • (string) getStylesheets () Browse code

    Retrieves stylesheets for the current web response.

    returns Stylesheets

  • (string) getTitle () Browse code

    Retrieves title for the current web response.

    returns Title

  • (boolean) hasHttpHeader () Browse code

    Has a HTTP header.

  • (boolean) initialize () Browse code

    Initializes this sfWebResponse.

    returns true, if initialization completes successfully, otherwise false

    throws sfInitializationException If an error occurs while initializing this Response

  • (boolean) isHeaderOnly () Browse code

    Returns if the response must only consist of HTTP headers.

    returns returns true if, false otherwise

  • mergeProperties () Browse code

    Copies a propertie to a new one.

  • (string) normalizeHeaderName () Browse code

    Retrieves a normalized Header.

    returns Normalized header

  • sendContent () Browse code

    Send content for the current web response.

  • sendHttpHeaders () Browse code

    Send HTTP headers and cookies.

  • setContentType () Browse code

    Sets response content type.

  • setCookie (, , , , , , ) Browse code

    Sets a cookie.

    throws sfException If fails to set the cookie

  • setHeaderOnly () Browse code

    Sets if the response consist of just HTTP headers.

  • setHttpHeader (, , ) Browse code

    Sets a HTTP header.

  • setStatusCode (, ) Browse code

    Sets response status code.

  • setTitle (, ) Browse code

    Sets title for the current web response.

  • shutdown () Browse code

    Executes the shutdown procedure.

  • (array) __sleep () Browse code

    Retrieves all objects handlers for the current web response.

    returns Objects instance

  • __wakeup () Browse code

    Reconstructs any result that web response instance needs.