> >
> > Would the following be another "usable" solution?
> >
> > <validator class="equals" required="false">
> > <argument>user_disabled</argument>
> > <ae:parameter name="value">1</ae:parameter>
> > </validator>
> >
> > $user_disabled = $rd->getParameter('user_disabled', 0); // default
> > value if not present
>
> I've been considering that, in most cases it will lead to the same
> result. However, it will behave differently in a number of edge-cases,
> most notably that $rd->hasParameter('user_disabled'); will return
> false, while in the other cases it will return true.
>
True, implementing the OR solution will be the default for me from now on. :-)
Thanks for the fast response,
Steffen
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users