Re: [PHP4BETA] unserialize data members to join extisting object, not possible?
| From: | waldschrott | Date: | Mon, 15 May 2000 10:33:04 +0000 |
| Subject: | Re: [PHP4BETA] unserialize data members to join extisting object, not possible? | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-15033@lists.php.net to get a copy of this message | ||
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.
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 ° · ° . ¤ ·