On Feb 18, 2009, at 8:25 PM, [email protected] wrote:


On Feb 17, 2009, at 11:17 PM, Marius Hein wrote:


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.




Regards,

Steffen


Cheers

felix

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to