RE: [PEAR] DB_DataObject_FormBuilder: Group Handling
| From: | Sönke Ruempler | Date: | Wed, 08 Dec 2004 14:50:31 +0000 |
| Subject: | RE: [PEAR] DB_DataObject_FormBuilder: Group Handling | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-16115@lists.php.net to get a copy of this message | ||
Justin Patrin wrote on Tuesday, December 07, 2004 11:18 PM:
> Well, groups are added that way by design to not screw with the
> element names. Changing the element names like that is very
> problematic. You can always add the group manually to your form in
> postGenerateForm() or put them in a form and use useForm() on thr FB
> object.
Ok, thx, that works perfectly for me.
>> I do not understand, why the array is name => group and not,
>> group_name => array of elements. This would imho make more sence.
>
> You're right, it doesn't seem to make much sense. I think it was done
> this way to ease lookups (group lookups are done per-element). This
> also restricts the group-per-element to one. (i.e. with the way you
> proposed it would be possible to have one element in multiple group
> arrays). We *could* add an option to alter the separators...how
> important is this?
No importance any more, because the above solutiun works great!
--
Sönke