04/08/2007: A bug fix and some (nice) new changes released into SubVersion source tree:
Fix for $_SESSION being empty when using scan_globals method in certain situations
Changes to regular expressions: Now use definable delimiter throughout code $preg_delimiter, defaults to ` (backtick)
Support top bit set characters x7f-xff in file, block and tags
Major new feature: tag callback functions - allow calling of (mutiple) PHP methods (in XTemplate or it's subclasses) or
functions from within a tag prior to output using | (pipe) as delimiter. See ex9.php
contents of tag are sent as a parameter to the callback function or method. NB. Methods take priority over same named function
e.g. {tagname|callback_function} for simple single parameter callback, tag contents passed as only parameter to callback.
e.g. {tagname|callback_function('param1', 'param2', %s)} to allow mutiple parameters to be specified, %s replaced by tag contents.
Real world chaining callbacks together:
e.g. {tagname|str_replace('Hello World', 'Welcome to the Jungle', %s)|strtolower|ucwords|my_user_callback_func}
(Inspired by sf feature request #1756946 christophe_lu)
Altered debug code in text method to cater for situations when $tpldir may be an array
29/05/2007: Updated SubVersion tree (see below) main addition Constructor argument $tpldir can now be an array of file paths. Rolled up SubVersion version trees into release 0.4.0 and released on Sourceforge∞ in PHP4/5 packages following the split in svn tree.
04/01/2007: Successfully completed migration to SubVersion (svn) on SourceForge.net. Alerts for svn commits are sent to new xtpl-svn∞ mailing list and also to PHP XTemplate @ CIA∞ who kindly provide an RSS feed∞ for the svn updates (which is also shown in the SubVersion Updates section below)
01/01/2007: Opened up for project donations via SourceForge.net Donations∞ scheme. Migrated CVS repository to SubVersion (which should make it much easier to update development versions as I use svn on all other projects these days).
31/12/2006: Completed CachingXTemplate extension class (awaiting release along with initial PHP5 version)
27/12/2006: Mailing lists back up and running - they're still quiet but that depends on you! There's also a new example showing one method of doing table rows (or similar constructs). Coming very soon PHP5 version (just need to tidy for release)
02/05/2006: CVS updated - Fixed bug in regexes for older php version (specifically php 4.2.2) that caused regex to fail
23/01/2006: Work continues in the background (due to having builders at home!), recent changes include addition of optional 4th parameter to assign method. This allows you to not over-write the current assign array but add to it. e.g. multiple assign statements can build the assigned tag array.
17/08/2005: CVS updated - Improved phpDoc entries; Added support for XTPL_DIR constant from SF Feature request 1202027: Kenneth Kalmer; Added support for comments in {FILE } includes e.g. {FILE "somefile.xtpl"# An included file}; Rewritten assign method, now checks if $val is an array instead of $name which never would be. Also added new parameter for stripslashes support e.g. $xtpl->assign('var', 'var', get_magic_quotes_qpc()); Moved most regular expressions to use | as delimiter; Improved output with regard to block tags and line endings - much better for xml output; Added support for empty files in file includes - previously required at least one byte
07/04/2005: Major new version committed to CVS on Sourceforge - amalgamation of last few years worth of updates and bug fixes that have come from use in commercial environments.
There are no comments on this page. [Add comment]