Re: DataObject setFrom with array values
| From: | Justin Patrin | Date: | Wed, 26 Jan 2005 21:45:26 +0000 |
| Subject: | Re: DataObject setFrom with array values | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17191@lists.php.net to get a copy of this message | ||
On Wed, 26 Jan 2005 15:42:16 -0600, Julie Knoll <k_julie@hotmail.com> wrote:
> The problem is not only with date elements though. The problem is with any
> value that might be set as an array. For example a series of radio buttons
> or a multiple select field.
And if you've set up a set function, I would assume that you should
pass *any* value into it. Although a series radio buttons should only
give back one value and a multi-select field isn't *really* something
that should go into a single DB field.
>
> Julie
>
> ----Original Message Follows----
> From: electroteque <daniel@electroteque.org>
> To: papercrane@reversefold.com
> CC: pear-general@lists.php.net, Alan Knowles <alan@akbkhome.com>, Julie
> Knoll <k_julie@hotmail.com>
> Subject: Re: [PEAR] DataObject setFrom with array values
> Date: Thu, 27 Jan 2005 08:24:50 +1100
>
> Here was my mod which is in the MDB2_DataObject
>
> //fix for form dates with arrays ??
>
> if (is_array($from[sprintf($format,$k)]) && $items[$k] !==
> MDB2_DATAOBJECT_DATE) {
> continue;
> }
>
--
Justin Patrin