public function response() { parent::response(); $this->setError("", 0); $mn = $this->method; if (method_exists($this, $mn)) { $rfm = new ReflectionMethod($this, $mn); if (( $rfm->isPublic() ) && (!$rfm->isConstructor() ) && (!$rfm->isDestructor() ) && ( $mn != "response" ) && ( $mn != "isError" ) && ($mn != "setOperation") && ( $mn != "getError" ) && ( $mn != "getErrorCode" ) ) { $response = call_user_func(array($this, $mn)); return $response; } else { $this->setError("Method Access Problem", 2002); return false; } } else { $this->setError("Method not found", 2001); return false; } }