[TYPO3-ect] recursive pid function for tx_div
Steve Ryan
stever at syntithenai.com
Wed Aug 15 11:57:58 CEST 2007
Christian Welzel wrote:
> Steve Ryan wrote:
>
>> static function findCObjectSingleton() {
>> if(!is_object(self::$cObj)) {
>> self::$cObj=t3lib_div::makeInstance('tslib_cObj');
>> debug(array('creating cobj'));
>> }
>> debug(array('returning cobj'));
>> return self::$cObj;
>> }
>
> Would be nicer to have something like this:
>
> static function findCObjectSingleton($data = NULL, $table = '') {
> if(!is_object(self::$cObj)) {
> self::$cObj=t3lib_div::makeInstance('tslib_cObj');
> debug(array('creating cobj'));
> }
> debug(array('returning cobj'));
> if(is_array($data))
> self::$cObj->start($data, $table)
> return self::$cObj;
> }
>
what is the start function? Not a function in div...
Steve
More information about the TYPO3-team-extension-coordination
mailing list