Public Member Functions | |
| addVariant ($value) | |
| getVariants () | |
| __construct ($cache=null) | |
| mayCompress () | |
| mayValidate () | |
| startCompression () | |
| generateContent () | |
| cacheCheck () | |
| genPage () | |
| display () | |
Protected Member Functions | |
| setCache ($cache) | |
| getCache () | |
Master class for generating a page
| Page::__construct | ( | $cache = null | ) |
Constructs a page
| $cache | optionally sets a cache |
|
abstract |
Finishes all necessary processing to determine the cacheset of this page.
| Page::display | ( | ) |
Displays the result from genPage.
Printing headers and content.
|
abstract |
Generates the actual content of the page
| Page::genPage | ( | ) |
Generates an appropriate response to the request.
Eg. 304 NOT CHANGED, error message or the actual content
|
protected |
Get the cache
| Page::mayCompress | ( | ) |
Decide wether or not this page may be compressed.
Normally this is a check for http headers, but some pages eg. pictures may not want to be compressed, and may override this function.
| Page::mayValidate | ( | ) |
Decide wether or not this page may be validated.
Normally this is a check for the option novalidate, but this may be overridden
|
protected |
Set the cache
| $cache | The cache object |
| Page::startCompression | ( | ) |
Turns on compression for this page
1.8.6