From c91e90406bbc81f8311a1d2707dd141d150f99a4 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 17 Nov 2008 00:30:18 +0000 Subject: Add output formats to our REST controllers. Add support for JSON and XML to the comment controllers as a proof of concept. It's not fully baked; we should examine ways to create helpers to make this process easier. --- modules/comment/controllers/comments.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/comment/controllers/comments.php') diff --git a/modules/comment/controllers/comments.php b/modules/comment/controllers/comments.php index 60ab9b5d..ab3be76f 100644 --- a/modules/comment/controllers/comments.php +++ b/modules/comment/controllers/comments.php @@ -31,10 +31,10 @@ class Comments_Controller extends REST_Controller { /** * Show the comment collection - * @see Rest_Controller::_get($resource) + * @see Rest_Controller::_get($resource, $format) */ - public function _get($item) { - print comment::get_comments($item); + public function _get($item, $output_format) { + print comment::get_comments($item, $output_format); } /** -- cgit v1.2.3