View Single Post
  #7  
Old 01-12-2008, 08:26 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Here are two functions, one to get the object that calls the function that calls it, and one to get the calling function in the same way.
PHP Code:
function getcallingfunction() {
  
temp.callstack getcallstack();
  return 
temp.callstack[temp.callstack.size() - 3];
}
function 
getcallingobject() {
  
temp.callstack getcallstack();
  return 
temp.callstack[temp.callstack.size() - 3].scriptcallobject;

__________________
Reply With Quote