note 50430 added to language.oop.constructor
| From: | herojoker at nexgo dot de | Date: | Mon, 28 Feb 2005 15:28:42 +0000 |
| Subject: | note 50430 added to language.oop.constructor | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85661@lists.php.net to get a copy of this message | ||
Hi!
If you want to call the parent's constructor without knowing its name, just call
$this->{get_parent_class(__CLASS__)}($arg1, $arg2, ...);
Have fun with that.
Hero Wanders
----
Manual Page -- http://www.php.net/manual/en/language.oop.constructor.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50430
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50430&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50430&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50430&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50430&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50430&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50430&report=yes
Search -- http://master.php.net/manage/user-notes.php