note 100905 added to language.oop5.properties

From: Date: Sun, 14 Nov 2010 14:52:23 +0000
Subject: note 100905 added to language.oop5.properties
Groups: php.notes 
Request: Send a blank email to php-notes+get-174020@lists.php.net to get a copy of this message
your class can extends this class abstract class Object { private $values; public function __get($name) { $method=$method = 'get_'.$name; if (method_exists($this,$method)) { return $this->$method(); } else return $this->values[$name]; } public function __set($name, $value) { $method=$method = 'set_'.$name; if (method_exists($this,$method)) { $this->$method($value); } else $this->values[$name]=$value; } } Is there any bug? ---- Server IP: 69.147.83.197 Probable Submitter: 89.165.121.137 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.properties.php Edit -- https://master.php.net/note/edit/100905 Del: integrated -- https://master.php.net/note/delete/100905/integrated Del: useless -- https://master.php.net/note/delete/100905/useless Del: bad code -- https://master.php.net/note/delete/100905/bad+code Del: spam -- https://master.php.net/note/delete/100905/spam Del: non-english -- https://master.php.net/note/delete/100905/non-english Del: in docs -- https://master.php.net/note/delete/100905/in+docs Del: other reasons-- https://master.php.net/note/delete/100905 Reject -- https://master.php.net/note/reject/100905 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#174020) next »