View Single Post
  #5  
Old 01-13-2008, 07:06 AM
Kyranki Kyranki is offline
Freelance Coder
Join Date: Aug 2007
Location: At the end of the rainbow, in the pot of gold.
Posts: 202
Kyranki is on a distinguished road
Send a message via AIM to Kyranki Send a message via MSN to Kyranki
Quote:
Originally Posted by Twinny View Post
The function checking one...maybe... but definitely not one for checking an object for variables. Seems like an unnecessary process for a simple operation.
I couldn't think of much else that would be helpful to someone. :o

Quote:
Originally Posted by Chompy View Post
PHP Code:
public function hasFunc(func) {
  return (
func in this.getfunctions());
}
public function 
isDynamicFunc(func) {
  return (
func in this.getdynamicvarnames());
}
public function 
hasVar(var) {
  if (var 
in this.getdynamicvarnames())
    return 
isValidVar(var);
}
public function 
isValidVar(var) {
  return (
this.(@ var) != null);
}
public function 
isObj(obj) {
  return (
obj.type() == 2);
}
public function 
isEditVar(var) {
  return (var 
in this.geteditvarnames());

hehe

I just had to edit it :o
(<3)
You b****** you! Must you always Chompy?
__________________
Stan.
Reply With Quote