Found out today from Inverness that functions are variables (that I knew) which do have sub-variables (that I didn't). So I made up a quick function to get the variable data from built in functions. I'm not really sure if any of this data is writable for built-in or script made functions, but I'll probably be finding out later.
PHP Code:
public function getfuncdata(func, obj, data) {
temp.functions = null;
temp.f = null;
if (obj == null) {
obj = this;
}
functions = obj.getfunctions();
for (f: functions) {
if (f == func) {
switch (data) {
case "desc": case "description": return (f.description); break;
case "params": case "parameters": return (f.parameters); break;
case "scope": return (f.scope); break;
}
}
}
}
Function is pretty self-explanatory but if explanations are needed I'd be happy to give them.
