Re: [PHP4BETA] Re: SESS: objects containing objects *final statement*(?) please read!
| From: | thies at digicol dot de | Date: | Fri, 25 Feb 2000 16:04:35 +0000 |
| Subject: | Re: [PHP4BETA] Re: SESS: objects containing objects *final statement*(?) please read! | ||
| References: | 1 2 3 4 5 6 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-10965@lists.php.net to get a copy of this message | ||
On Fri, Feb 25, 2000 at 10:54:37AM -0500, Stig S. Bakken wrote:
> thies@digicol.de wrote:
> >
> > On Fri, Feb 25, 2000 at 09:27:31AM -0600, Andrei Zmievski wrote:
> > >
> > > Would register_object_serialize_method() use some global table where it
> > > registers class name and these methods?
> >
> > c'mon boys we can do nicer that this?
> >
> > i really like the sleep()/wakeup() thing - but shouldn't we
> > make some standard method names part of the language instead
> > of having to register_blabla_() them. i don't see why
> > somebody would have to name them different.
>
> Okay then, I'm a big fan of calling them sleep() and wakeup(), but
> chances are someone has a class out there with these method names
> already. What about serializeSleep() and unserializeWakeup()?
that'll always be a problem - the only way to overcome this
would be a change in Zend (make soemthing legal that used to
be illegal) like:
class bla {
sleep {
// code to sleep()
}
wakeup {
// wakeup code()
}
}
i can feel how "hell breaks loose" now;-))
>
> > BTW: what about not serializing class variables that start
> > with a '_' character. the usage should be obvious, right?
>
> I have exactly the same problem as Andrei with this. What about
> variables that start with two '_' characters? :-)
same as above - in an ideal world we would do:
class bla {
var $serialize_me;
volatile $dont_serialize;
..
}
i can hear a Z barking:)
as we all seem to agree that the concept is good(tm) we can
now:
- implement it ourself by taking a *tiny* bit of namespace
away from the user.
or
- try to implement it in zend.
comments?
>
> - Stig
>
--
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