Re: More issues with QF/QFC
| From: | Barry Steele | Date: | Fri, 09 Jan 2004 10:04:15 +0000 |
| Subject: | Re: More issues with QF/QFC | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10079@lists.php.net to get a copy of this message | ||
On Fri, 2004-01-09 at 19:36, Bertrand Mansion wrote:
> <barry@hpfm.biz> wrote :
>
> ><SNIP>
> tions (there are about 8 of these on the page);
> >
> > Thanks in advance.
>
> This is due to array_merge() in exportValues(). Again, I'd like to curse the
> guy who wrote this rip-off array_merge() function. Last time I complained
> about this, I was told by some clever guy that this behavior is documented.
> So what, because it is documented doesn't mean it is not stupid.
>
> Anyway, we will probably have to write our own for QuickForm because
> array_merge() reorders your keys when your keys are numbers, even if they
> actually are strings because you used quotes. Very clever isn't it ?
> Array_merge() is not only a function that will merge two arrays into one, as
> the name states, but it is also a filter that will convert strings to
> numbers! How cool ! Is this not an example of BAD design ?
>
> Now, about your other problem, checkboxes in QuickForm only return 1 when
> they are checked so you know that they are checked. You can use advcheckbox
> for a more complicated behavior.
>
> Bertrand Mansion
> Mamasam
>
>
Hi Bertrand,
Thanks,
woudl you like me to have a go at array_merge() - I haven;t looked at
the function but I'd be happy to try to meet some specs if you have them
articulated.
And thanks for the advice re advcheckbox - I hadn't thought of that :-(
I'll let you know how I get on.
Cheer and thanks again
Barry
>
>
Barry Steele
hpfm solutions pty ltd
mob: 0413947980
fax: 0299817727
mailto:: barry@hpfm.biz