Method |
Description |
|
addCacheControlHttpHeader ( string $name, string $value = null ) |
Adds an control cache http header. |
|
addHttpMeta ( string $key, string $value, boolean $replace = true ) |
Adds a HTTP meta header. |
|
addJavascript ( string $file, string $position = '', string $options = [] ) |
Adds javascript code to the current web response. |
|
addMeta ( string $key, string $value, boolean $replace = true, boolean $escape = true ) |
Adds a meta header. |
|
addStylesheet ( string $file, string $position = '', string $options = [] ) |
Adds a stylesheet to the current web response. |
|
addVaryHttpHeader ( string $header ) |
Adds vary to a http header. |
|
clearHttpHeaders ( ) |
Cleans HTTP headers from the current web response. |
|
clearJavascripts ( ) |
Clear all previously added javascripts |
|
clearStylesheets ( ) |
Clear all previously added stylesheets |
|
copyProperties ( sfWebResponse $response ) |
Copies all properties from a given sfWebResponse object to the current one. |
|
getCharset ( ) : string |
Gets the current charset as defined by the content type. |
|
getContentType ( ) : array |
Gets response content type. |
|
getCookies ( ) : array |
Retrieves cookies from the current web response. |
|
getDate ( string $timestamp, string $type = 'rfc1123' ) : string |
Retrieves a formated date. |
|
getHttpHeader ( string $name, string $default = null ) : string |
Gets HTTP header current value. |
|
getHttpHeaders ( ) : string |
Retrieves HTTP headers from the current web response. |
|
getHttpMetas ( ) : string |
Retrieves meta headers for the current web response. |
|
getJavascripts ( string $position = self::ALL ) : array |
Retrieves javascript files from the current web response. |
|
getMetas ( ) : array |
Retrieves all meta headers. |
|
getPositions ( ) : array |
Returns the available position names for stylesheets and javascripts in order. |
|
getSlots ( ) : string |
Retrieves slots from the current web response. |
|
getStatusCode ( ) : integer |
Retrieves status code for the current web response. |
|
getStatusText ( ) : string |
Retrieves status text for the current web response. |
|
getStylesheets ( string $position = self::ALL ) : array |
Retrieves stylesheets for the current web response. |
|
getTitle ( ) : string |
Retrieves title for the current web response. |
|
hasHttpHeader ( string $name ) : boolean |
Checks if response has given HTTP header. |
|
initialize ( sfEventDispatcher $dispatcher, array $options = [] ) : boolean |
Initializes this sfWebResponse. |
|
isHeaderOnly ( ) : boolean |
Returns if the response must only consist of HTTP headers. |
|
merge ( sfWebResponse $response ) |
Merges all properties from a given sfWebResponse object to the current one. |
|
prependTitle ( string $title, string $separator = ' - ', boolean $escape = true ) |
Preprend title |
|
removeJavascript ( string $file ) |
Removes a JavaScript file from the current web response. |
|
removeStylesheet ( string $file ) |
Removes a stylesheet from the current web response. |
|
send ( ) |
Sends the HTTP headers and the content. |
|
sendContent ( ) |
Send content for the current web response. |
|
sendHttpHeaders ( ) |
Sends HTTP headers and cookies. Only the first invocation of this method will send the headers. |
|
serialize ( ) |
|
|
setContentType ( string $value ) |
Sets response content type. |
|
setCookie ( string $name, string $value, string $expire = null, string $path = '/', string $domain = '', boolean $secure = false, boolean $httpOnly = false ) |
Sets a cookie. |
|
setHeaderOnly ( boolean $value = true ) |
Sets if the response consist of just HTTP headers. |
|
setHttpHeader ( string $name, string $value, boolean $replace = true ) |
Sets a HTTP header. |
|
setSlot ( string $name, string $content ) |
Sets a slot content. |
|
setStatusCode ( string $code, string $name = null ) |
Sets response status code. |
|
setTitle ( string $title, boolean $escape = true ) |
Sets title for the current web response. |
|
unserialize ( $serialized ) |
|
|