note 101760 deleted from language.oop5.magic by danbrown

From: Date: Mon, 10 Jan 2011 17:06:57 +0000
Subject: note 101760 deleted from language.oop5.magic by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-175601@lists.php.net to get a copy of this message
Note Submitter: mcgarnagle ---- Sammaye I might be misunderstanding your note, but the reason it's returning false is because you haven't overloaded isset() so it never actually uses your __get() when doing the isset($this->field) check. You could overload isset() like so: <? public function __isset($name) { return array_key_exists($key, $this->attributes); } ?> And then isset($this->field) will work as expected.

« previous php.notes (#175601) next »