By: RwD
Date: 2006-04-05
Time: 14:53
|
Can I access class methods using onsection?
I have a utilities class with a function called cleanup. This function will clean up certain data in certain places. Is it possible to access this object method using tbs?
Suppose the utilities class is called SysUtilities, then from php I can say SysUtilities::cleanup($Block, $CurrRec, $Src, $RecNum) and the function is executed (I do not instantiate the SysUtilities class).
Can I call this function from tbs????
|
By: Skrol29
Date: 2006-04-05
Time: 15:45
|
Re: Can I access class methods using onsection?
Calling a method of an instancied class is possible within TBS, but not yet for a non instancied class.
I can easilly add this in TBS 3.00, but for now you can do it by coding you own function which calles the method.
|
By: Skrol29
Date: 2006-04-06
Time: 11:27
|
Re: Can I access class methods using onsection?
I've just added such feature in TBS 3.00b30, soon available...
|
By: Sheepy
Date: 2006-04-10
Time: 05:54
|
Re: Can I access class methods using onsection?
Excellent. Can they be used in header & footer group in 3.0 too? I recall it's not possible in 2.0...
|
By: Skrol29
Date: 2006-04-10
Time: 13:57
|
Re: Can I access class methods using onsection?
Yes they can.
|
|
Posting in progress.
Please wait...
|