spunQ_TaggingHeaderAndFooterManager Class Reference

Header/Footer strategy using tagging and string replacement. More...

Inheritance diagram for spunQ_TaggingHeaderAndFooterManager:

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.

Public Attributes

const HEADERS_STRING = '<spunQ:headers/>'
 The injected string for the headers().
const FOOTERS_STRING = '<spunQ:footers/>'
 The injected string for the footers().

Private Attributes

 $response
 Response this manager is for.
 $displayedHeaders = false
 Whether showHeaders() was called.
 $displayedFooters = false
 Whether showFooters() was called.


Detailed Description

Header/Footer strategy using tagging and string replacement.

WARNING: This is really not the safest implementation as it does string replacement on the finished html body.

Definition at line 8 of file TaggingHeaderAndFooterManager.class.php.


Member Function Documentation

spunQ_TaggingHeaderAndFooterManager::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 69 of file TaggingHeaderAndFooterManager.class.php.

spunQ_TaggingHeaderAndFooterManager::setResponse ( spunQ_HttpResponse response  ) 

Sets the reponse object to manage.

Parameters:
$reponse Response object.
Returns:
void

Implements spunQ_IHeaderAndFooterManager.

Definition at line 41 of file TaggingHeaderAndFooterManager.class.php.

spunQ_TaggingHeaderAndFooterManager::showFooters (  ) 

Called whenever footers() is invoked.

Returns:
void

Implements spunQ_IHeaderAndFooterManager.

Definition at line 60 of file TaggingHeaderAndFooterManager.class.php.

spunQ_TaggingHeaderAndFooterManager::showHeaders (  ) 

Called whenever headers() is invoked.

Returns:
void

Implements spunQ_IHeaderAndFooterManager.

Definition at line 51 of file TaggingHeaderAndFooterManager.class.php.


Member Data Documentation

spunQ_TaggingHeaderAndFooterManager::$displayedFooters = false [private]

Whether showFooters() was called.

Type:
boolean

Definition at line 36 of file TaggingHeaderAndFooterManager.class.php.

spunQ_TaggingHeaderAndFooterManager::$displayedHeaders = false [private]

Whether showHeaders() was called.

Type:
boolean

Definition at line 30 of file TaggingHeaderAndFooterManager.class.php.

spunQ_TaggingHeaderAndFooterManager::$response [private]

Response this manager is for.

Type:
spunQ_HttpResponse

Definition at line 24 of file TaggingHeaderAndFooterManager.class.php.


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

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