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
  Info   View files View files (23)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2001-02-06 (13 years ago) RSS 2.0 feedNot enough user ratingsTotal: 2,877 All time: 1,191 This week: 2,464Down
Version Licenses Categories  
cachedtemplate 1.0GNU General Public Lice...Templates
Description Author  
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)
Picture of Jesus M. Castagnetto
Name: Jesus M. Castagnetto <contact>
Classes: 4 packages by
Country: ???
Age: ???
All time rank: 180
Week rank: 1811 Down

  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

 Version Control Unique User Downloads Download Rankings  
 0%Total:2,877All time:1,191
 This week:0This week:2,464Down