note 82958 added to language.oop5.overloading
| From: | nuttzy at spellingcow dot com | Date: | Sat, 03 May 2008 15:40:31 +0000 |
| Subject: | note 82958 added to language.oop5.overloading | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-139025@lists.php.net to get a copy of this message | ||
Sorry, please disregard my previous note. The example fails b/c I've not properly supplied a
__get method...
<?
...
function __get($var) {
return $this->_raw_data[$var];
}
...
?>
...it appears that empty() will first call your __isset method, and if that is successful, it will
call your __get method to check the data value. This is exactly what the behavior should be.
----
Server IP: 209.41.74.194
Probable Submitter: 24.61.31.167
----
Manual Page -- http://www.php.net/manual/en/language.oop5.overloading.php
Edit -- https://master.php.net/note/edit/82958
Del: integrated -- https://master.php.net/note/delete/82958/integrated
Del: useless -- https://master.php.net/note/delete/82958/useless
Del: bad code -- https://master.php.net/note/delete/82958/bad+code
Del: spam -- https://master.php.net/note/delete/82958/spam
Del: non-english -- https://master.php.net/note/delete/82958/non-english
Del: in docs -- https://master.php.net/note/delete/82958/in+docs
Del: other reasons-- https://master.php.net/note/delete/82958
Reject -- https://master.php.net/note/reject/82958
Search -- https://master.php.net/manage/user-notes.php