About DB class.
| From: | Vitaly N. Kravchenko | Date: | Mon, 04 Feb 2002 17:27:32 +0000 |
| Subject: | About DB class. | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-4394@lists.php.net to get a copy of this message | ||
Hi people!
I have idea, about adding some function(methods) to DB class..
__sleep() and __wakeup(), for storing DB objects in sessions..
Is it possible?
Cox?
P.S. Have one question: if I have object with property = other object,
for example:
$myobj = new MyObj();
but $myobj->$db = new DB(...);
if I have __wakeup() methods in both classes, wich function
are executed first? __wakeup() in DB ($myobj->db)
or in MyObj ($myobj)?
Thanks!
--
Best regards, KVN.
PHP4You (<http://php4you.kiev.ua/>)
PEAR [ru] (<http://pear.php.net/manual/ru/>)
mailto:kvn@php.net