X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/examples/restful/remote/lib/response.php diff --git a/examples/restful/remote/lib/response.php b/examples/restful/remote/lib/response.php new file mode 100644 index 00000000..12252827 --- /dev/null +++ b/examples/restful/remote/lib/response.php @@ -0,0 +1,22 @@ +success = isset($params["success"]) ? $params["success"] : false; + $this->message = isset($params["message"]) ? $params["message"] : ''; + $this->data = isset($params["data"]) ? $params["data"] : array(); + } + + public function to_json() { + return json_encode(array( + 'success' => $this->success, + 'message' => $this->message, + 'data' => $this->data + )); + } +}