[TYPO3-ect] function castList remove from lib ?
Fabien Udriot
fudriot at omic.ch
Wed Dec 12 17:32:40 CET 2007
Thanks for your answer,
In lib version 0.0.25 we have :
/* Convert the internal elmements to objects of the given class name */
function castElements($entryClassName = 'tx_lib_object', $callMakeInstanceClassName = TRUE) { ... }
/* Convert an entry that itself is a list to the given classes */
function castList($key, $listClassName = 'tx_lib_object', $listEntryClassName = 'tx_lib_object', ....) {...}
The different is that castList() convert only *one* entry (i.e. an array for the view)
instead of castElements() that converts all elements to a class. And that's what I need.
In lib version 0.1.0 (in TER) the castList() function disappeared... So I was wondering if it was replaced
by something else or it was something missing.
best regards,
Fabien
Jan Hein a écrit :
> Hi Fabien,
>
> I don't know the function 'castList' but there is a function
> 'castElements'.
> Perhaps it does the same.
>
> best regards,
>
> Jan
>
> Fabien Udriot schrieb:
>> Hi lib/div'ers
>>
>> By making compatible my extensions with the alpha release of lib/div,
>> I remark that the function "castList" was removed from tx_lib_object.
>>
>> As consequence, this line does not work anymore :
>> $view->castList('entries','tx_ecorss_views_feed','tx_ecorss_views_feed')
>>
>> For which reasons was this function removed ? I found this function
>> very useful ... And now, how can we convert an entry that itself is
>> a list ?
>>
>> best regards,
>>
>> Fabien
>>
>> _______________________________________________
>> TYPO3-team-extension-coordination mailing list
>> TYPO3-team-extension-coordination at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-extension-coordination
>>
>>
>>
>
More information about the TYPO3-team-extension-coordination
mailing list