[TYPO3-mvc] repository chain multiple "likes"

Jochen Rau jochen.rau at typoplanet.de
Tue Dec 8 12:42:59 CET 2009


Hi.

schrieb Alex Bailey:
> Jochen Rau schrieb:
>> schrieb Steffen Ritter:
>>> $query->logicalAND($query->like(),$query->like())
>>
>> Early bird catches the worm ... ;-)
>>
>> Jochen
>>
>
> Hey guys :)
>
> Thanks for your answers I think I have an idea now. But i still have one
> problem. My "likes" are being created dynamic that means sometimes i
> maybe have 1 sometimes 3 likes. So I can't set them static inside the
> function. Is there any way to insert them inside a foreach loop?
>
> example:
>
> 1. loop ->
> $query->logicalAND($query->like())
>
> 2. loop ->
> $query->logicalAND($query->like(),$query->like())
>
> and so on...

I would implement a recursive function calling itself in a loop.

http://devzone.zend.com/article/1235

Regards
Jochen


-- 
Every nit picked is a bug fixed



More information about the TYPO3-project-typo3v4mvc mailing list