symfony API

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

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 (, )

    Adds an control cache http header.

  • addHttpMeta (, , )

    Adds meta headers to the current web response.

  • addJavascript (, )

    Adds javascript code to the current web response.

  • addMeta (, , , )

    Adds a meta header to the current web response.

  • addStylesheet (, , )

    Adds an stylesheet to the current web response.

  • addVaryHttpHeader ()

    Adds vary to a http header.

  • clearHttpHeaders ()

    Cleans HTTP headers from the current web response.

  • (array) getContentType ()

    Gets response content type.

  • (array) getCookies ()

    Retrieves cookies from the current web response.

    returns Cookies

  • (string) getDate (, )

    Retrieves a formated date.

    returns Formated date

  • (string) getHttpHeader ()

    Gets HTTP header current value.

  • (string) getHttpHeaders ()

    Retrieves HTTP headers from the current web response.

    returns HTTP headers

  • (string) getHttpMetas ()

    Retrieves meta headers for the current web response.

    returns Meta headers

  • (string) getJavascripts ()

    Retrieves javascript code from the current web response.

    returns Javascript code

  • (array) getMetas ()

    Retrieves all meta headers for the current web response.

    returns List of meta headers

  • (string) getStatusCode ()

    Retrieves status code for the current web response.

    returns Status code

  • (string) getStylesheets ()

    Retrieves stylesheets for the current web response.

    returns Stylesheets

  • (string) getTitle ()

    Retrieves title for the current web response.

    returns Title

  • (boolean) hasHttpHeader ()

    Has a HTTP header.

  • (boolean) initialize ()

    Initializes this sfWebResponse.

    returns true, if initialization completes successfully, otherwise false

    throws sfInitializationException If an error occurs while initializing this Response

  • (boolean) isHeaderOnly ()

    Returns if the response must only consist of HTTP headers.

    returns returns true if, false otherwise

  • mergeProperties ()

    Copies a propertie to a new one.

  • (string) normalizeHeaderName ()

    Retrieves a normalized Header.

    returns Normalized header

  • sendContent ()

    Send content for the current web response.

  • sendHttpHeaders ()

    Send HTTP headers and cookies.

  • setContentType ()

    Sets response content type.

  • setCookie (, , , , , , )

    Sets a cookie.

    throws sfException If fails to set the cookie

  • setHeaderOnly ()

    Sets if the response consist of just HTTP headers.

  • setHttpHeader (, , )

    Sets a HTTP header.

  • setStatusCode (, )

    Sets response status code.

  • setTitle (, )

    Sets title for the current web response.

  • shutdown ()

    Executes the shutdown procedure.

  • (array) __sleep ()

    Retrieves all objects handlers for the current web response.

    returns Objects instance

  • __wakeup ()

    Reconstructs any result that web response instance needs.