Gpf_Rpc_Form::toObject PHP Method

toObject() public method

public toObject ( )
        public function toObject()
        {
            $response = new stdClass();
            $response->fields = $this->fields->toObject();
            if ($this->isSuccessful()) {
                $response->success = Gpf::YES;
                $response->message = $this->infoMessage;
            } else {
                $response->success = "N";
                $response->message = $this->errorMessage;
            }
            return $response;
        }