html.class.php File Reference

Go to the source code of this file.

Classes

class  spunQ_html
 Global configurations/functions for the spunQ.html module. More...


Detailed Description

Todo:
The package should actually be called http, not html.
Developer log entry:
Necdet Can Atesman (2009-05-04): Just read on php.net that IE ignores custom error pages on occasion, if they don't exceed 1kb in size. That's why the padHtmlTo1k() function was introduced.
Developer log entry:
Necdet Can Atesman (2009-05-20): Moved many of the functions in this class to a separate entity: The HttpResponse
Developer log entry:
Necdet Can Atesman (2009-09-09): We need to move this whole html folder into the modules folder of spunQ.
Developer log entry:
Necdet Can Atesman (2009-09-14): This package seems to be quite stable. Now on to the optimizations:
  • 304 header: If the same user requests a page that wasn't changed since the last time he requested it, a HTTP 304 should be returned. This is merely for saving bandwith, the whole page needs to be generated nonetheless.
  • Expires header: An Expires: header should prevent the browser from re-requesting certain files. We need a URL-transformer.
  • Page file caching: We really don't need to parse all page files on each request.
  • Image bundling: We need a function showImgTag() that is capable of bundling multiple small images into one.
  • spunQ state: There needs to be a development and a deployment mode. The deployment mode can omit several checks. We'll implement the following for now:
    • Omit checking of cache file state. The cache file holding type definitions can always be regarded as up-to-date. We need to store the type definitions in the spunQ cache for that.
    • Cache DB schema.
Developer log entry:
Necdet Can Atesman (2009-10-07): Good news: All of the above have been implemented already :)

Definition in file html.class.php.


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