[Html-widget] Disallow multiple values

A. Pagaltzis pagaltzis at gmx.de
Thu Oct 19 17:24:33 GMT 2006


* Carl Franks <fireartist at gmail.com> [2006-10-19 11:35]:
> What about a $w->constraint_all() method which is used like
> $w->constraint(), but doesn't take a name parameter

Agree so far.

> and doesn't do anything until during $w->process() when all
> elements have been added.

No, too much magic. It should take effect immediately. It’s not
hard to invoke it at the end of the form definition, but doing
so enables its use for mass-applying constraints to many, but
not all elements in the form, by calling it prior to adding the
elements that shouldn’t have the constraint in question.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Html-widget mailing list