Tuesday 29 January 2008 7:50:51 am
Hi all, I'm in need for a possibility to use (or emulate) a nested attribute_filter using the fetch function. Example with a simple boolean condition:
(a < 1) && ((b = 2) || (c = 3))
IMHO it's not possible to express this using an attribute-filter, as it only allows one boolean operator for all filter criterias. I tried something like the following construct to nest the filter criterias, but it won't work either:
array('and',
array('myclass/attribute1, '<', '1'),
array('or',
array('myclass/attribute2', '=', '2'),
array('myclass/attribute3', '=', '3)
)
)
Does anyone have another idea or is it simply not possible?
Kind regards, Tobias
|