[Solar-talk] inList

Jeff Surgeson solar at 3hex.com
Sun Jun 18 08:52:05 PDT 2006


Hi Paul

> > Sorry for the long delay (6 weeks +) in following up.  Did we ever
> > resolve this?

Sorry for delayed response, no we never did so look forward to new release and 
trying the changes out.

> If not, we seem to have now ... as promised, Solar_Form_Load_Table is
> now slightly smarter:
>
> For inList() validations, it creates an assoc array of key-value
> pairs based only on the values from the table column validation.
>
> For inKeys() validations, it sets the options as they appear in the
> table column validation.
>
> E.g., if the inList() validation is against array('foo', 'bar',
> 'baz') then the form options will be array('foo' => 'foo', 'bar' =>
> 'bar', 'baz' => 'baz').  The options for an inKeys() validation will
> give form options of (0 => 'foo', 1 => 'bar', 2 => 'baz').
>
> Have committed the changes to Solar_Form_Load_Table in SVN, and have
> written a basic test set under tests/Test/Solar/Form/Load/Table.php.
> Thus, they will be in the next release (which I hope will be this week).
>
> Let me know if you have questions/comments/etc.

Not yet but maybe after new release :-)

-- 
Jeff Surgeson


More information about the solar-talk mailing list