All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog
- OnData plug-ins are not triggered, because of a private property.
- New parameter « ope=debug_val » for debugging values.
- PHP 8.2 compatibility improved
- PHP 8.2 compatibility : utf8_encode is deprecated + creation of dynamic property is deprecated.
- Error message « invalid query XXX because VarRef item YYY is not found » when item YYY is stored in $GLOBALS.
- Error message « Undefined variable $NoDelim1 »
- Error message « Error in field [onload...]: it doesn't have any subname. » when using subtemplates containing automatic fields.
- PHP error "Unsupported operand types" when using a TBS comparison (if/when) and one expression has no string delimiter and is not numerical.
- Support Doctrine DBAL in native.
- Parameter 'strconv=utf8' is PHP 8.2 compliant. The feature no longer uses the deprecated PHP function utf8_encode().
- New TBS option 'scripts_allowed' enables you to unlock the parameter 'script' which becomes forbidden by default.
- By default, parameter 'script' is forbidden. It can be allowed using the new TBS option 'scripts_allowed'.
- Version number
- method SetVarRefItem() supports an array of items
- Compatibility with PHP 8.1
- New methods SetVarRefItem() and GetVarRefItem() : uniformize and ensure compatibility to set a VarRef items.
- Parameter 'magnet=#' used with MergeBlock() makes erroneous merging when magnet is activated, except for the first occurence.
- Parameter 'frm' displays '1970-01-01' for a date over '2038-01-19 03:14:07' on a PHP 32-bits plateform.
- Compatibility with PHP 8
- New parameters for blocks : 'firstingrp', 'lastingrp', 'singleingrp'. They define sections of a block displayed for the first, the last or the single record in a group.
- MergeBlock() return false instead of 0 when no block and no field have been merged.
- Infinite loop when a plugin event OnOperation returns false during a mergin of an automatic field such as [onload.my_var].
- New method GetAttValue($Name[,$delete]) : enables you to read an attribute of an HTML or XML element in the template.
- New method ReplaceFields(array($name=>$prms) [, $BlocName]) : replace simple TBS fields with new definitions of fields.
- New parameter 'combo' : apply a set of parameters defined at the PHP side using SetOption('prm_combo').
- Subnames for fields, array queries and ObjectRef path can support methods overloaded with magic function _call().
- PHP error: one meth_Misc_Alert() called with a wrong number of arguments.
- Coding OnCacheField event in a plug-in: in some circumstances, moved locators may be ignored by TBS. Could happen with OpenTBS when using parameter "ope=tbs:num" or a similar operator.
- Coding OnCacheField event in a plug-in: stronger way to manage embedding fields + support property DelMe.
-
New operator "" for block definition syntax. Example: "block=3tr".
-
New operator "!" for block definition syntax. Use it on first or last tag in order to exclude the tag from the block bound. Example: "block=!div".
-
New marker "." for block definition. Use it to represents the bound of the TBS field itself. Example: "block=(.)".
-
New arguments $LocLst and $Pos for the event OnCacheField. It enables a plug-in to move, add or delete TBS fields.
-
Native support for SQLite3.
-
Parameter "parallel=tbs:table" now supports , , and . The tags must be closed even if HTML actually allows unclosed tags.
-
Better management of fields moved in a set of other fields, when using parameter "att". Parameter "att" can make a TBS field moving forward another of the same block.
-
Support GetOption('parallel_conf').
-
Support GetOption('block_alias').
-
Parameter "att" does not find the self-closing tag if there is no space before "/>". Example :
-
"Notice: Undefined property: clsTbsLocator::$AttName" can occurs if parameter "atttrue" is used for an attribute which is not already present in the target element.
-
Parameter "ope=upperw" works only with lower case characters.
-
Error message "Notice: Undefined property: clsTbsLocator::$AttName in tbs_class.php on line 1492".
- New parameter "parallel" for merging a block in columns (or any other parallel ways).
- New way for merging sub-template: PHP error messages are not absorbed any more. This new way may not be compatible with subscripts that uses the echo command (very rare). In this case you should add set option $TBS->SetOptions('old_subtemplate') for compatibility.
- Now can merge DateTime objects and also objects with the magic method __toString().
- Error messages are in plain text instead of HTML when PHP is used in command line (CLI).
- Some code enhancements.
- replace or with ||
- replace and with &&
- HTML plug-in version 1.0.8: parameter "select" now works with values containing special HTML characters.
- Parameter "frm": leading zero coming with a prefix or a suffix may not format the number as expected. http://www.tinybutstrong.com/forum.php?thr=3208
- There use to have an error message about $Loc->AttForward when the entity of parameter "att" is not found.
-
Explicit error message when a colmun is missing for a grouping paremeter (headergrp, footergrp, splittergrp)
-
Add option methods_allowed
- PHP 5.4 : Unexpected PHP error [Array to string conversion] severity [E_NOTICE] in [D:\Users\Qwerty\Dev HTML\Site Dev\svn_TinyButStrong\trunk\tbs_class.php line 72] Unexpected PHP error [Array to string conversion] severity [E_NOTICE] in [D:\Users\Qwerty\Dev HTML\Site Dev\svn_TinyButStrong\trunk\tbs_class.php line 1369]
- Plugin MergeOnFly