View Single Post
  #4  
Old 01-12-2008, 06:05 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by napo_p2p View Post
I have just one comment.

Instead of all the return true/return false, you can do something like (for example):
PHP Code:
public function hasFunc(func) {
  return (
temp.func in this.getfunctions());

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)
__________________
Reply With Quote