Re: [PHP4BETA] unserialize data members to join extisting object, not possible?
| From: | thies at digicol dot de | Date: | Mon, 15 May 2000 10:35:12 +0000 |
| Subject: | Re: [PHP4BETA] unserialize data members to join extisting object, not possible? | ||
| References: | 1 2 3 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-15034@lists.php.net to get a copy of this message | ||
On Mon, May 15, 2000 at 12:33:04PM +0200, waldschrott wrote:
> thx, but I´m abolutely unable to figure out in which way your example should help me
> serializing resources and connections, I wanted to know if there´s a way
> to join an object to another one to include it´s datamembers...
> Do I have to call one of the new functions like get_ojbect_vars(??) and
> to manually copy them into another object?
> Unserialize just overwrites another object.
sorry got you wrong.. (maybe i should read *before* reply;-)
regardinmg the joining of two objects i cannot help you,
sorry.
>
> regards
>
>
>
> >
> > you can use __sleep and __wakeup calls in your class that
> > help you when serializing resources and DB connections. see
> > attached sample.
> >
> >
>
>
>
> --
> o----------0-¬---------O-·---¬----o---®-----o o O ° .
> | http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ¤
> ° ·
>
> 0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ °
> o © ° . ·
> | psychedelic experience | gott@kiffen.de | O ° o °
> o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·
--
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany