Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Feed_Pubsubhubbub_HttpResponse Class Reference

Public Member Functions

 sendResponse ()
 Send the response, including all headers.
 
 sendHeaders ()
 Send all headers.
 
 setHeader ($name, $value, $replace=false)
 Set a header.
 
 getHeader ($name)
 Check if a specific Header is set and return its value.
 
 getHeaders ()
 Return array of headers; see $_headers for format.
 
 canSendHeaders ($throw=false)
 Can we send headers?
 
 setHttpResponseCode ($code)
 Set HTTP response code to use with headers.
 
 getHttpResponseCode ()
 Retrieve HTTP response code.
 
 setBody ($content)
 Set body content.
 
 getBody ()
 Return the body content.
 

Protected Member Functions

 _normalizeHeader ($name)
 Normalizes a header name to X-Capitalized-Names.
 

Protected Attributes

 $_body = ''
 
 $_headers = array()
 
 $_httpResponseCode = 200
 

Member Function Documentation

_normalizeHeader (   $name)
protected

Normalizes a header name to X-Capitalized-Names.

Parameters
string$name
Returns
string
canSendHeaders (   $throw = false)

Can we send headers?

Parameters
boolean$throwWhether or not to throw an exception if headers have been sent; defaults to false
Returns
boolean
Exceptions
Zend_Feed_Pubsubhubbub_Exception
getBody ( )

Return the body content.

Returns
string
getHeader (   $name)

Check if a specific Header is set and return its value.

Parameters
string$name
Returns
string|null
getHeaders ( )

Return array of headers; see $_headers for format.

Returns
array
getHttpResponseCode ( )

Retrieve HTTP response code.

Returns
int
sendHeaders ( )

Send all headers.

Sends any headers specified. If an HTTP response code has been specified, it is sent with the first header.

Returns
void
sendResponse ( )

Send the response, including all headers.

Returns
void
setBody (   $content)

Set body content.

Parameters
string$content
Returns
Zend_Feed_Pubsubhubbub_HttpResponse
setHeader (   $name,
  $value,
  $replace = false 
)

Set a header.

If $replace is true, replaces any headers already defined with that $name.

Parameters
string$name
string$value
boolean$replace
Returns
Zend_Feed_Pubsubhubbub_HttpResponse
setHttpResponseCode (   $code)

Set HTTP response code to use with headers.

Parameters
int$code
Returns
Zend_Feed_Pubsubhubbub_HttpResponse

Member Data Documentation

$_body = ''
protected
$_headers = array()
protected
$_httpResponseCode = 200
protected