[TYPO3-50-general] Competition: Best replacement for "and"/"or" wanted!
ries van Twisk
typo3 at rvt.dds.nl
Wed Jul 23 15:30:10 CEST 2008
Hey karsten,
I thought about that to, but that was in the PHP4 age... we are now in
PHP5 and preparing for 6.
In doubt you could also use and_ instead of _and
But I feel that _and is more clear...
They are just two functions, right? so that should be easy to
remember...
Ries
On Jul 23, 2008, at 1:45 AM, Karsten Dambekalns wrote:
> Hi Ries.
>
> ries van Twisk wrote:
>> What about,
>>
>> $query->_and($query->equals('name', $var)->equals('tag', $var2));
>
> I had thought about that, but usually (in the PHP world), the leading
> underscore denotes protected/private methods. So it might be
> misleading
> to some...
>
> Regards,
> Karsten
More information about the TYPO3-project-5_0-general
mailing list