Hello,
There was a long time since the last TBS version, but here it is.
The beta is available for download here :
http://tbs-next.googlegroups.com/web/tbs_v3.05b2009-05-05.zip
The package has a "What's News" file which I paste just above:
Have nice day.
***********************
The new features are currently being benched.
The new features for PHP 5 are available for both packages "PHP 4 or
higher" and "PHP 5 E_STRICT".
Please note that the features may change before the final version.
Feel free to send report and comments.
New features:
-------------
- New parameter 'att' which move a TBS field into a XML/HTML attribute
before to be merged.
Examples:
[var.x;att=class] moves into attribute 'class' of the first tag on
the left.
[var.x;att=div#class] moves into attribute 'class' of the first
<div> on the left.
[var.x;att=+div#class] moves into attribute 'class' of the first
<div> on the right.
[var.x;att=((div))#class] moves into attribute 'class' of the second
embedding <div> on the left.
[var.x;att=table+div#class] moves into attribute 'class' of the
first <div> after the first <table> on the left.
Restriction for MergeBlock() : a TBS error occurs when move on the
right over another TBS fields.
Options that should be developed:
Parameter 'attdel' which allows to delete the attributes when the
value is empty.
Parameter 'attadd' which allows to add the value into the attribute
instead of replacing the existing value.
- MergeBlock() allows automatic sub-block. Works with new parameters
'sub1', 'sub2', 'sub3', ...
(Idea given by Olivier)
Example: [bl1.ParentName;block=tr+tr;sub1=Childs] ...
[bl1_sub1.ChildName;block=tr]
This example assumes that block 'bl1' is merged with a data source
which is an array or an object.
And that this data source has a column Childs which is itself an
array or an object.
Block 'bl1_sub1' must be embedded into 'bl1'.
- MergeField() allows to define a set of default parameters.
(Idea given by Gasper)
Example: $TBS->MergeField('mf',date('Ymd'),false,array('frm'=>'dd/mm/
yyyy'));
- Parameter 'getbody' now allows to get multiparts, and to take tags
or not.
Example: [onload;file=;getbody=(script)+(style)+body]
The main goal of this feature is to include Javascript and styles
from subtemplates.
- MergeBlock() natively supports Iterator, ArrayObject and
IteratorAggregate.
(Idea given by Olivier)
- MergeBlock() allows columns names with spaces.
- Public and Static are defined when appropriate.
Some methods are leaved public because they are a hook for some
plugins.
Fixed bugs:
-----------
- Fatal error: Call to undefined method
clsTbsDataSource::f_Misc_CheckArgLst().
- Warning of 2 undefined variables.
http://tinybutstrong.com/forum.php?msg_id=9265
-
http://www.tinybutstrong.com/forum.php?msg_id=9508 (fixed but not
yet tested)
***********************