RE: [PHP] Getting Function and Method Prototypes

From: Date: Wed, 13 Dec 2000 18:32:04 +0000
Subject: RE: [PHP] Getting Function and Method Prototypes
Groups: php.dev php.general 
Request: Send a blank email to php-dev+get-41209@lists.php.net to get a copy of this message
> > I have a need to be able to take an arbitrary class name and list its > > methods and their parameters. Using get_class_methods will get me the first, > > but how can I get the parameters? > > I don't believe there is any way of getting the arguments of any function > from outside it, but I could be wrong. You are right. There is no such interface. It would be a nice addition, though. At any rate, since I'm creating a soap addition to php, I wanted to create the XML schema of the class and its methods automatically from the class definition. However, I'll never get automatic creation since PHP is not strongly typed. This is at least true for server side. (BTW - I wonder if PHP could add the ability for functions to optionally be strongly typed?) Client side is easier. Adding functions from another website is simple: inlcude('soaplib.php'); inlcude_soap('http://soap.network54.com/logins.wsml'); $passport = new Logins(); $sessionid = $passport->Login($domain,$username,$password); Sincerely, Steven Roussey Network54.com http://network54.com/?pp=e

« previous php.dev (#41209) next »