Categories > TinyButStrong general >

version 2.05 beta available

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Skrol29
Date: 2005-08-24
Time: 01:07

version 2.05 beta available

Hello, For those would like to try it, here is what's new:

New features:
------------------

* Parameter 'ondata' for blocks.
This parameter executed a custom user function each time a record is
fetched from the data source. The difference with 'onsection' is that
'onsection' function is called each time a sections is displayed.
An 'ondata' function hallows to modify the current record only once
for any sections and and also to calculate columns that can be used
for header sections.

Improvements:
-------------------

* Hollow to use spaces when several blocks are mentioned in MergeBlock().

* Can merge several Navigation bars in one shot, the same way
as for MergeBlock().

* When MergeBlock() doesn't found any block or field for the given name,
the the query is not open.
This Hollow to avoid a problem with dynamic queries used with sub-blocks.

* When database functions are not found for a given keyword, TBS try to
found functions for the same keyword but without suffix.
This hallows to have a same database functions set for several extended
object classes, for example with ezSql, or PearDB.
The class name for a PearDB connexion on a MySql database is 'db_mysql',
the first function should be named tbsdb_db_mysql_open(), now
tbsdb_db_open() is also accepted.

Fixed bugs:
--------------

* Error message more coherent when a database custom function is
not found.
By: arcy
Date: 2005-08-24
Time: 21:17

Re: version 2.05 beta available

hi skrol,

this sounds great! is it possible to add an "auto-delete" parameter to blocks, that deletes the block, when it's not used?

greets from germany

arcy
By: Skrol29
Date: 2005-08-25
Time: 01:34

Re: version 2.05 beta available

Hi Arcy,

There is a way to delete one or several blocks explicitely
  $TBS->MergeBlock('blk1','clear');
But TBS cannot know that a block has a auto-delete parameter since it doesn't know that this block exist. Or this would mean that TBS can scann for all posible block in the template, which is not the case for the moment, and which could be very complicated and could have a cost of time execution.
By: arcy
Date: 2005-08-25
Time: 08:58

Re: version 2.05 beta available

$TBS->MergeBlock('blk1','clear');

is just what i needed! THANKS!

TBS is such a great tool. Is it possible to do some hacks on the class? I just have some ideas;-)
By: Skrol29
Date: 2005-08-25
Time: 11:41

Re: version 2.05 beta available

What do you mean "do some hacks" ?
By: arcy
Date: 2005-08-25
Time: 22:02

Re: version 2.05 beta available

I just wanted to know if it is allowed to do some modifications to the class. i'm working on a big project right now and need some extra functionality. but perhaps the coming plugin-feature (tbs 3.0!?) will serve my needs. when do you think, you will release it?

thanks and greets

arcy
By: Skrol29
Date: 2005-08-26
Time: 10:14

Re: version 2.05 beta available

TBS is under licence LGPL wich hallow you to modify the code source as you need. (Which doesn't mean that you can appropriate the code, or let other people believe you are the author).

The point is that you will have to modify it for your needs for each futur versions. But you're free.

I don't know when 3.0 will be ready. My target is before the end of september, but if I met some difficulties, it will be longer.
By: arcy
Date: 2005-08-26
Time: 10:31

Re: version 2.05 beta available

thx