$property_name){ return $this->$property_name; } elseif(method_exists($this, $func)) { return $this->$property_name = $this->$func(); } else { return $this->$property_name = false; } } public function get_ci() { $ci = &get_instance(); return $ci; } }