diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-11-25 16:28:24 +0100 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-11-25 16:28:24 +0100 |
commit | bc8cc9142e08611104cdc4df9d518775ef576066 (patch) | |
tree | 12e88197b6db36f74b91fb1778f3fc18c7257dde /lib/public/appframework/http/jsonresponse.php | |
parent | 248eed16a6bf917292d4a99191d123a7e7cc9002 (diff) | |
download | nextcloud-server-bc8cc9142e08611104cdc4df9d518775ef576066.tar.gz nextcloud-server-bc8cc9142e08611104cdc4df9d518775ef576066.zip |
AppFramework(Controller|HTTP|HTTP-Responses|Middleware), IContainer API fixes
Diffstat (limited to 'lib/public/appframework/http/jsonresponse.php')
-rw-r--r-- | lib/public/appframework/http/jsonresponse.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/public/appframework/http/jsonresponse.php b/lib/public/appframework/http/jsonresponse.php index 7c2b609bc2e..b54b23a34e6 100644 --- a/lib/public/appframework/http/jsonresponse.php +++ b/lib/public/appframework/http/jsonresponse.php @@ -20,6 +20,10 @@ * */ +/** + * Public interface of ownCloud for apps to use. + * AppFramework\HTTP\JSONResponse class + */ namespace OCP\AppFramework\Http; @@ -30,10 +34,15 @@ use OCP\AppFramework\Http; */ class JSONResponse extends Response { + /** + * response data + * @var array|object + */ protected $data; /** + * constructor of JSONResponse * @param array|object $data the object or array that should be transformed * @param int $statusCode the Http status code, defaults to 200 */ @@ -55,7 +64,7 @@ class JSONResponse extends Response { /** * Sets values in the data json array - * @param array|object $params an array or object which will be transformed + * @param array|object $data an array or object which will be transformed * to JSON */ public function setData($data){ |