Thread: Function Data
View Single Post
  #1  
Old 08-09-2008, 03:31 AM
TheStan TheStan is offline
Stan?
Join Date: May 2008
Location: U.S.
Posts: 100
TheStan is on a distinguished road
Send a message via AIM to TheStan Send a message via MSN to TheStan
Function Data

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(funcobjdata) {
  
temp.functions null;
  
temp.null;
  
  if (
obj == null) {
    
obj this;
  }
  
functions obj.getfunctions();
  for (
ffunctions) {
    if (
== 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.

Last edited by TheStan; 08-09-2008 at 04:33 AM..
Reply With Quote