note 37625 added to language.oop.magic-functions
| From: | jacobmather at dwsc dot net | Date: | Fri, 21 Nov 2003 09:23:24 +0000 |
| Subject: | note 37625 added to language.oop.magic-functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-60741@lists.php.net to get a copy of this message | ||
Something interesting to point out...
the magic __wakeup() function has access to global variables... such as... $_POST! How interesing...
I think i'm going to use this to enhance template handeling. Interesting to think of though.
Just make your template object referance the information it needs from inside the __wakeup routine,
and make it display the initial page when the constructor is run... store it in a session variable.
Sorry I don't have any code examples at the time... but it's just another odd option you
have, like variable variable functions ... (i.e. $c = 'count'; $NumOfEntries =
$c($array);)
----
Manual Page -- http://www.php.net/manual/en/language.oop.magic-functions.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37625
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37625&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37625&report=yes
Search -- http://master.php.net/manage/user-notes.php