note 109775 added to language.oop5.overloading

From: Date: Sun, 19 Aug 2012 21:14:43 +0000
Subject: note 109775 added to language.oop5.overloading
Groups: php.notes 
Request: Send a blank email to php-notes+get-190135@lists.php.net to get a copy of this message
To remedy the problem with autocomplete with most IDE's its possible to add method hints which will help users of your class discover methods that should be there. /** * Example Class * @method int doSomething() */ class MyClass { public function __call($name,$args){ // your code here } } When this class is probed via code complete it will show the 'doSomething' method even though it doesn't really exist in the class. This syntax is used extensively in the magento code base. ---- Server IP: 69.147.83.197 Probable Submitter: 74.193.79.154 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.overloading.php Edit -- https://master.php.net/note/edit/109775 Del: integrated -- https://master.php.net/note/delete/109775/integrated Del: useless -- https://master.php.net/note/delete/109775/useless Del: bad code -- https://master.php.net/note/delete/109775/bad+code Del: spam -- https://master.php.net/note/delete/109775/spam Del: non-english -- https://master.php.net/note/delete/109775/non-english Del: in docs -- https://master.php.net/note/delete/109775/in+docs Del: other reasons-- https://master.php.net/note/delete/109775 Reject -- https://master.php.net/note/reject/109775 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#190135) next »