[phpwebapp-improvments] [phpwebapp - phpWebApp Improvements] Webobject state destructor
Brought to you by:
dashohoxha
From: SourceForge.net <no...@so...> - 2003-07-30 09:59:40
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2127155 By: dashohoxha It may be useful that the webobjects also have functions like: $this->constructor(); $this->destructor(); which are called by the framework after the object is created and before it is destroyed. The destructor can be called just before the session vars are saved, so that it has the possibility to remove its state vars from the session by calling WebObject::destroy(), which is the oposite of WebObject::init(). When WebObject::destroy() is called, it removes all the state vars from the session, so that next time that this webObj is parsed, it will be initialized again ($this->init() will be called again). Probably it is better to rename: $this->init() to $this->initState() and WebObject::destroy() to WebObject::destroyState() ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=135220 |