note 103236 added to class.reflectionmethod
| From: | webseiten dot designer at googlemail dot com | Date: | Sat, 02 Apr 2011 19:53:12 +0000 |
| Subject: | note 103236 added to class.reflectionmethod | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-178439@lists.php.net to get a copy of this message | ||
Note that the public member $class contains the name of the class in which the method has been
defined:
<?php
class A {public function __construct() {}}
class B extends A {}
$method = new ReflectionMethod('B', '__construct');
echo $method->class; // prints 'A'
?>
----
Server IP: 217.160.235.204
Probable Submitter: 93.207.92.240
----
Manual Page -- http://www.php.net/manual/en/class.reflectionmethod.php
Edit -- https://master.php.net/note/edit/103236
Del: integrated -- https://master.php.net/note/delete/103236/integrated
Del: useless -- https://master.php.net/note/delete/103236/useless
Del: bad code -- https://master.php.net/note/delete/103236/bad+code
Del: spam -- https://master.php.net/note/delete/103236/spam
Del: non-english -- https://master.php.net/note/delete/103236/non-english
Del: in docs -- https://master.php.net/note/delete/103236/in+docs
Del: other reasons-- https://master.php.net/note/delete/103236
Reject -- https://master.php.net/note/reject/103236
Search -- https://master.php.net/manage/user-notes.php