spunQ_ITemplateCache Interface Reference

A cache for template content. More...

Inherited by spunQ_DefaultTemplateCache.

List of all members.

Public Member Functions

 storeTemplateContent (spunQ_Template $template, array $variables, array $cacheOptions, $content)
 Stores the template's contents.
 loadTemplateFromCache (spunQ_Template $template, array $variables, array $cacheOptions)
 Tries to load the template contents from cache.


Detailed Description

A cache for template content.

Definition at line 6 of file ITemplateCache.interface.php.


Member Function Documentation

spunQ_ITemplateCache::loadTemplateFromCache ( spunQ_Template template,
array $  variables,
array $  cacheOptions 
)

Tries to load the template contents from cache.

Parameters:
$template The template to process.
$variables Parameters to the template.
$cacheOptions The template's cache options.
Returns:
boolean Whether the content was loaded. The content is echo()ed if it was loaded. This has the same effect of processing the template directly.

spunQ_ITemplateCache::storeTemplateContent ( spunQ_Template template,
array $  variables,
array $  cacheOptions,
content 
)

Stores the template's contents.

Parameters:
$template The template to process.
$variables Parameters to the template.
$cacheOptions The template's cache options.
$content Content generated by the template.
Returns:
void


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

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