note 55185 deleted from language.oop5.overloading by betz

From: Date: Thu, 28 Jul 2005 09:28:39 +0000
Subject: note 55185 deleted from language.oop5.overloading by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-92616@lists.php.net to get a copy of this message
Note Submitter: http://robajz.info ---- I am deciding not to use these __get() __set() __call() PHP5 features. Look, 1) it is unpredictable it just works different, you cannot rely on it in terms of standard PHP coding (fe. you cannot use it recursively, you cannot combine get->set, isset doesn't work and so on...) 2) you cannot define or distinguish public / protected / private access 3) you cannot document it by standandard tools like phpDoc or docgen as well as you cannot use autocomplete ide with this I experienced many problems with this funny stuf. It is a nice idea, but if it worked a bit better... I am going to stay with basic getVarA() setVarA() as I was used to in PHP4 and that is what i recommend you as well - especially if you are a beginner. There can be exceptions, fe. general varying data (database query) can be accessed with this method effectively, but think twice! happy phping :)

« previous php.notes (#92616) next »