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. --- core/controllers/album.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/controllers/album.php') diff --git a/core/controllers/album.php b/core/controllers/album.php index 1701e283..a5853fa7 100644 --- a/core/controllers/album.php +++ b/core/controllers/album.php @@ -23,13 +23,13 @@ class Album_Controller extends Item_Controller { * @see Rest_Controller::_form($resource) */ public function _form($comment) { - throw new Exception("@todo Comment_Controller::_get NOT IMPLEMENTED"); + throw new Exception("@todo Album_Controller::_form NOT IMPLEMENTED"); } /** - * @see Rest_Controller::_get($resource) + * @see Rest_Controller::_get($resource, $output_format) */ - public function _get($item) { + public function _get($item, $output_format) { // @todo: these need to be pulled from the database $theme_name = "default"; $page_size = 9; -- cgit v1.2.3