Categories > TinyButStrong general >

Database Functions on Objects

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: andrew clarke
Date: 2004-11-18
Time: 18:41

Database Functions on Objects

Hi Skrol29,

I've been using TBS for a long time now and find it excellent. With the new 2.0 release, the inbuilt support for objects is great for me because I use a lot of objects.

I often use an object as a TBS data source and have to write the custom data functions outside of the object like this:
tbsdb_objectname_open();
tbsdb_objectname_fetch();
tbsdb_objectname_close();

Is there any way to use functions within the object instead such as:
$object->TBS_Open();
$object->TBS_Fetch();
$object->TBS_Close();

If the answer is no, could this be incorporated into a future version. This would be a very useful feature especially when you use inherited (extended) objects.

Thanks in advance.
By: Skrol29
Date: 2004-11-19
Time: 01:43

Re: Database Functions on Objects

Hi Andrew,

There is no way that TBS 2.0 uses methods of the object without the external custom functions.
It seems easy to add for next version, but I will check if there is no malicious problem with it.
By: andrew clarke
Date: 2004-11-19
Time: 10:59

Re: Database Functions on Objects

Thanks, this would be a great help for oo programmers like myself