Hi,
Nice to find another Smalltalker here. I guess you already have most of
your answer. Of course you still need some list of classes. With
phpPeanuts i have a classloading function that keeps such a list in a
global variable. It was meant for use with php4, to look up the
classname in original case from the lower case result php4's get_class
function gives, but i guess you can use it for other kinds of reflection
too:
function includeClass($className, $dirPath='') {
if ($dirPath && substr($dirPath, -1) != '/')
$dirPath .= '/';
$result = require_once("../classes/$dirPath"."$className.php");
if ($result)
$GLOBALS['PntIncludedClasses'][strtolower($className)] = $className;
return $result;
}
Greetings,
Henk Verhoeven,
www.metaclass.nl.
BTW, if you also miss the senders and implementers search, you could
take a look at this hypercode browser:
http://www.phppeanuts.org/site/index...7/methods.html
(To my regret i did still did not find time to make it an aplha download..)
ImOk wrote:
In Smalltalk I can get the list of the classes, methods and global
variables by querrying a global dictionary. In addition you can get the
arguments.
I know in PHP one can get the list of globals via the $GLOBALS array.
But Is there a way to get the list of all the functions and
classes/methods (and arguments) currently loaded in PHP by using
reflection?
Thank you