Login   Register  
PHP Classes
elePHPant
Icontem

Generalized CachedTemplate class: General Template Caching class

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Jesus M. Castagnetto
Name: Jesus M. Castagnetto <e-mail contact>
Packages: 4 Browse all classes by Jesus M. Castagnetto Browse all classes by
Country: ???
Age: ???
All time rank: 177
Week rank: 985 Down


  Detailed description   Download Download .zip .tar.gz  
A generalized parsed template caching mechanism, that can work with a variety of existing template classes.

The latest version can always be found at the CachedTemplate class site, there you can download also all the examples with their respective include files and templates.

New version 1.1 - includes support for PHPLIB's Template class and the use of GET query string in the document caching
New version 1.2 - Added a more general way of dealing with variables that the user may want to be used in writing/reading/validating cached documents, also added support for external data validation (using a timestamp or md5 hash)
New version 1.2.1 - Bug fix in the read_from_cache, which appeared when using use_get or use_vars w/ the "in_name" option
New version 1.2.2 - typo fix in the $release var, affected old version of PHP3; fixed typos in documentation
New version 1.3(unreleased) - added support for a file locking mechanism to
avoid race conditions
New version 1.4 - support for reading from a cached file, useful when doing a
partial caching of content (see partial_caching.php for an example)

  Classes of Jesus M. Castagnetto  >  Generalized CachedTemplate class  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Generalized CachedTemplate class
Base name: cachedtemplate
Description: General Template Caching class
Version: -
PHP version: -
Licenses: GNU General Public License (GPL)
The PHP License
All time users: 2877 users
All time rank: 1182
Week users: 0 users
Week rank: 2464 Equal
 
  Groups   Rate classes User ratings   Applications   Related links   Files Files  

  Groups  
Group folder image Templates Template processing engines and components View top rated classes


  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
CachedFastTemplate class A class I wrote that originated the idea for the one here. That one was designed to work only with the FastTemplate class and does not contain the enhancements in the one here.
CachedTemplate class site Distribution site for the CachedTemplate class and associated source (all examples, templates, include files, etc.)
FastTemplate class CDI's Class
HTML Template class Herman's class
PHPLIB PHPLIB package including a Template class
QuickTemplate class Stefan's class
Template class Richard's class
XTemplate class Barnabas' class

  Files folder image Files  
File Role Description
Accessible without login Plain text file CachedTemplate.txt ??? Class documentation
Accessible without login Plain text file class.CachedTemplate.php ??? The CachedTemplate class (version 1.4)
Accessible without login Plain text file class.FastTemplateAdaptor.php ??? Template Adaptor class for FastTemplate
Accessible without login Plain text file class.HTMLTemplateAdaptor.php ??? Template Adaptor for HTML Template class
Accessible without login Plain text file class.PHPLIBTemplateAdaptor.php ??? Adaptor class for PHPLIB's Template class
Accessible without login Plain text file class.QuickTemplateAdaptor.php ??? Template adaptor for the QuickTemplate class
Accessible without login Plain text file class.RHTemplateAdaptor.php ??? Template adaptor for Richard's Template class
Accessible without login Plain text file class.XTemplateAdaptor.php ??? Template adaptor for the XTemplate class
Accessible without login Plain text file datavalid_example2.php ??? example of using external data validation using an md5 hash
Accessible without login Plain text file data_valid_example1.php ??? Example of external data validation using data timestamp
Accessible without login Plain text file fasttemplate_example.php ??? Example using the FastTemplate class
Accessible without login Plain text file herman_example.php ??? Example using HTML Template class
Accessible without login Plain text file partial_caching.php ??? Example of using get_from_cache to implement partial caching
Accessible without login Plain text file phplibtemplate_example.php ??? Example using the PHPLIB'x Template class
Accessible without login Plain text file ptpl_box.ihtml ??? Use by phplibtemplate_example.php
Accessible without login Plain text file ptpl_page.ihtml ??? used by phplibtemplate_example.php
Accessible without login Plain text file quicktemplate_ex.php ??? Example using the QuickTemplate class
Accessible without login Plain text file richard_example.php ??? Example using Richard's Template class
Accessible without login Plain text file rows.dat ??? data file used by the examples datavalid_example[12].php
Accessible without login Plain text file use_get_example1.php ??? Example of using the use_get() method w/ the default option
Accessible without login Plain text file use_get_example2.php ??? Example of using the use_get() method w/ the "store" option
Accessible without login Plain text file use_vars_example.php ??? example of the user_vars() method
Accessible without login Plain text file xtemplate_ex5.php ??? Example using the XTemplate class

Download Download all files: cachedtemplate.tar.gz cachedtemplate.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.