Example #1
0
 /**
  *	Return TRUE if property has public/protected visibility
  *	@return bool
  *	@param $key string
  **/
 private function visible($key)
 {
     if (property_exists($this, $key)) {
         $ref = new ReflectionProperty(get_class($this), $key);
         $out = !$ref->isprivate();
         unset($ref);
         return $out;
     }
     return FALSE;
 }