note 52594 added to ref.com
| From: | Matthew at osu1 dot php dot net | Date: | Fri, 06 May 2005 17:35:19 +0000 |
| Subject: | note 52594 added to ref.com | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89009@lists.php.net to get a copy of this message | ||
I have need for a commercial class library that requires a paramater to be passed when the object is
created.
It does not appear as though PHP allows for the instantiation of COM/DOTNET objects that require a
parameter to be passed to their constructor... I am not sure if I am being clear, but suppose to
create a new Mercedes you would use:
$car = new COM("Car.Mercedes");
What if the constructor for that class required that you specified a model of the car in order to
instantiate it?
e.g.:
$car = new COM("Car.Mercedes('SL600')");
...or something like that. Is it possible? Is there a work-around?
----
Manual Page -- http://www.php.net/manual/en/ref.com.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52594
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52594&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52594&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52594&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52594&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52594&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52594&report=yes
Search -- http://master.php.net/manage/user-notes.php