note 52594 deleted from ref.com by nlopess

From: Date: Fri, 06 May 2005 18:47:47 +0000
Subject: note 52594 deleted from ref.com by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-89021@lists.php.net to get a copy of this message
Note Submitter: Matthew ---- 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?

« previous php.notes (#89021) next »