- //$rm = new \ReflectionMethod($class, '__construct');
- //return $rm->invokeArgs(null, $settings);
- //return call_user_func_array($class . '::__construct', $settings);
+ }
+
+ public function get($varname, $default = '')
+ {
+ if (!isset($this->$varname) || $this->$varname == '') {
+ return $default;
+ }
+ return $this->$varname;