[TYPO3-core] RFC #17420: Add LOOP cObject
Dmitry Dulepov
dmitry.dulepov at gmail.com
Tue Feb 1 16:39:54 CET 2011
Hi!
Xavier Perseguers wrote:
> Well, it works great even without "standard TYPO3" columns. I'm using
> ->cObj->start() with any array content without problem :-).
+1. This is very useful for extensions that need to loop over custom data
in templates (without uid).
>> Why not introduce a new ->dataArray which could be anything implementing
>> the "Iterator" class? This allows much more flexible ways of passing
>> data to this LOOP without having to "pre-fill" an array.
>
> Then it should not be named "dataArray" but "input" or "dataIterator"
> because it would not be an array all the time.
I do not think it is necessary because it will complicate things. cObj
works fine without using uid in $data. So leave it as is.
--
Dmitry Dulepov
TYPO3 core&security team member
E-mail: dmitry.dulepov at typo3.org
Web: http://dmitry-dulepov.com/
More information about the TYPO3-team-core
mailing list