Re: WDDX recordset deserialize
| From: | phillip at formstar dot com | Date: | Fri, 09 Nov 2001 00:59:40 +0000 |
| Subject: | Re: WDDX recordset deserialize | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-69853@lists.php.net to get a copy of this message | ||
I have attatched a patch to do recordset, datetime, and field tags processing
during deserialization.
On Thu, 8 Nov 2001, Andrei Zmievski wrote:
> On Thu, 08 Nov 2001, phillip@formstar.com wrote:
> > Hi all:
> >
> > I am thinking of a way to transform WDDX recordset element into PHP varialbles
> > when deserializing the packet.
> >
> > It seems that all recordset will look like:
> >
> > <var name="queryname"><recordset rowcount="?"
> > fieldname="f1,f2,...fn"><field
> > name="f1">...</field>...</recordset></var>
> >
> > The above can be transformed into:
> >
> > <var
> > name="queryname"><string>f1,f2,...fn</string></var><var
> > name="f1"><array>...</array></var><var
> > name="f2"><array>...</array></var>...
> >
> > If we parse as this transformation, in PHP script:
> >
> > $values = wddx_deserialize($packet);
> > $values["queryname"] = "f1,f2,...,fn";
> > $values["f1"] = values in array for "f1" field;
> > ....
> > $values["fn"] = values in array for "fn" field;
> >
> >
> > Should this solve the recordset problem?
>
> Deserializing the recordset is not a problem, but creating one out of
> PHP values is since there is no exact mapping. It would be better to
> have it work both ways, but maybe deserialization only support at this
> point is fine.
>
> -Andrei
Phillip Pan
-----------