spunQ_BufferingHeaderAndFooterManager Class Reference

Header/Footer strategy using output buffering. More...

Inheritance diagram for spunQ_BufferingHeaderAndFooterManager:

spunQ_IHeaderAndFooterManager

List of all members.

Public Member Functions

 setResponse (spunQ_HttpResponse $response)
 Sets the reponse object to manage.
 showHeaders ()
 Called whenever headers() is invoked.
 showFooters ()
 Called whenever footers() is invoked.
 postProcessBody (&$body)
 Allowspost-processing body content.
 prependHeaderInformation ($output)
 Callback function for prepending header information to the output.
 prependFooterInformation ($output)
 Callback function for prepending footer information to the output.

Private Attributes

 $response
 Response this manager is for.


Detailed Description

Header/Footer strategy using output buffering.

See also:
spunQ_OutputBuffer

Definition at line 7 of file BufferingHeaderAndFooterManager.class.php.


Member Function Documentation

spunQ_BufferingHeaderAndFooterManager::postProcessBody ( &$  body  ) 

Allowspost-processing body content.

Parameters:
$body The captured body string to post-process.
Returns:
void The processing is done in-place.

Implements spunQ_IHeaderAndFooterManager.

Definition at line 42 of file BufferingHeaderAndFooterManager.class.php.

spunQ_BufferingHeaderAndFooterManager::prependFooterInformation ( output  ) 

Callback function for prepending footer information to the output.

Prepends javascript tags to be placed into the footer to the string.

See also:
prependHeaderInformation
Parameters:
$output The accumulated output buffer.
Returns:
string

Definition at line 68 of file BufferingHeaderAndFooterManager.class.php.

spunQ_BufferingHeaderAndFooterManager::prependHeaderInformation ( output  ) 

Callback function for prepending header information to the output.

This function serves as a callback to the spunQ_OutputBuffer created in showHeaders()

Parameters:
$output The accumulated output buffer.
Returns:
string The buffer, prepended with header information.

Definition at line 57 of file BufferingHeaderAndFooterManager.class.php.

spunQ_BufferingHeaderAndFooterManager::setResponse ( spunQ_HttpResponse response  ) 

Sets the reponse object to manage.

Parameters:
$reponse Response object.
Returns:
void

Implements spunQ_IHeaderAndFooterManager.

Definition at line 18 of file BufferingHeaderAndFooterManager.class.php.

spunQ_BufferingHeaderAndFooterManager::showFooters (  ) 

Called whenever footers() is invoked.

Returns:
void

Implements spunQ_IHeaderAndFooterManager.

Definition at line 34 of file BufferingHeaderAndFooterManager.class.php.

spunQ_BufferingHeaderAndFooterManager::showHeaders (  ) 

Called whenever headers() is invoked.

Returns:
void

Implements spunQ_IHeaderAndFooterManager.

Definition at line 26 of file BufferingHeaderAndFooterManager.class.php.


Member Data Documentation

spunQ_BufferingHeaderAndFooterManager::$response [private]

Response this manager is for.

Type:
spunQ_HttpResponse

Definition at line 13 of file BufferingHeaderAndFooterManager.class.php.


The documentation for this class was generated from the following file:

Generated on Fri Jul 1 11:12:38 2011 for spunQ3 by  doxygen 1.5.9