summaryrefslogtreecommitdiff
path: root/core/controllers/item.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-17 00:30:18 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-17 00:30:18 +0000
commitc91e90406bbc81f8311a1d2707dd141d150f99a4 (patch)
treeddda2c6bacd4b0e0e30f4c8a62d13b2842b864cc /core/controllers/item.php
parent0975e702a99dad701f66c606de6597048338f247 (diff)
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.
Diffstat (limited to 'core/controllers/item.php')
-rw-r--r--core/controllers/item.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/controllers/item.php b/core/controllers/item.php
index 053acc92..70af9d95 100644
--- a/core/controllers/item.php
+++ b/core/controllers/item.php
@@ -23,11 +23,11 @@ class Item_Controller extends REST_Controller {
/**
* @see Rest_Controller::_form($resource)
*/
- public function _form($comment) {
- throw new Exception("@todo Comment_Controller::_get NOT IMPLEMENTED");
+ public function _form($item) {
+ throw new Exception("@todo Comment_Controller::_form NOT IMPLEMENTED");
}
- public function _get($item) {
+ public function _get($item, $format) {
// Redirect to the more specific resource type, since it will render
// differently. We could also just delegate here, but it feels more appropriate
// to have a single canonical resource mapping.