note 75380 added to language.oop5.paamayim-nekudotayim
| From: | Moshe at osu1 dot php dot net | Date: | Fri, 25 May 2007 22:41:05 +0000 |
| Subject: | note 75380 added to language.oop5.paamayim-nekudotayim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-126912@lists.php.net to get a copy of this message | ||
It is probably worth noting that class::method not always means calling a static method.
For example:
<?php
class P {
public function __construct() {
echo "parent construct: ".print_r($this)."\n";
}
}
class C extends P {
public function __construct() {
echo "child construct: ".print_r($this)."\n";
parent::__construct();
}
}
new C;
?>
Although we call parent::__construct(), there's $this available in the method, meaning it is
performed on an instance of a class as oppose to expected static method.
I wonder if there are any other constructs like that?
----
Server IP: 69.147.83.197
Probable Submitter: 72.54.247.138
----
Manual Page -- http://www.php.net/manual/en/language.oop5.paamayim-nekudotayim.php
Edit -- https://master.php.net/note/edit/75380
Del: integrated -- https://master.php.net/note/delete/75380/integrated
Del: useless -- https://master.php.net/note/delete/75380/useless
Del: bad code -- https://master.php.net/note/delete/75380/bad+code
Del: spam -- https://master.php.net/note/delete/75380/spam
Del: non-english -- https://master.php.net/note/delete/75380/non-english
Del: in docs -- https://master.php.net/note/delete/75380/in+docs
Del: other reasons-- https://master.php.net/note/delete/75380
Reject -- https://master.php.net/note/reject/75380
Search -- https://master.php.net/manage/user-notes.php