Hi, I am using Macromedia Dreamwever and Zend Engine, and see that intellisense thing. Seeing that it can reads/knows what methods we have created within a class. Is there a way for me to know it too ? How do I know methods within one class ?
For example, when I created a class Validator, then I typed:
$validator = new Validator();
$validator->......... -----> And right after the "->" sign, it will show us the pop-up selection menu containing methods of the Validator class.
Thanks,
Chris
How do you know what methods contain within an OBJECT ?
Moderator: General Moderators
- christian_phpbeginner
- Forum Contributor
- Posts: 136
- Joined: Sat Jun 03, 2006 2:43 pm
- Location: Java
http://be2.php.net/manual/en/language.o ... ection.php
But i presume that an editor simply parses all the source files.. And builds it's own list instead of using the reflection api...
Code: Select all
printf("---> Methods: %s\n", var_export($class->getMethods(), 1));- christian_phpbeginner
- Forum Contributor
- Posts: 136
- Joined: Sat Jun 03, 2006 2:43 pm
- Location: Java
timvw wrote:http://be2.php.net/manual/en/language.o ... ection.php
But i presume that an editor simply parses all the source files.. And builds it's own list instead of using the reflection api...Code: Select all
printf("---> Methods: %s\n", var_export($class->getMethods(), 1));
Thanks timvw. I will try this class soon. I needed this class (Reflection) to create a documentation of all the classes (old collections of classes that were created by previous programmers)...
Chris