[Solar-talk] inList

Paul M Jones pmjones at solarphp.com
Sun Jun 18 07:27:47 PDT 2006


On Jun 18, 2006, at 8:50 AM, Paul M Jones wrote:

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

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.



--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.   <http://solarphp.com>

Savant: The simple, elegant, and powerful solution for
templates in PHP.   <http://phpsavant.com>




More information about the solar-talk mailing list