input->get("offset", 0); $children = array(); // @todo actually fill the array switch ($output_format) { case "json": print json_encode($children); break; case "rss": $view = new View("slideshow_feed.rss"); $view->item = $parent; $view->children = $children; break; default: throw new Exception("@todo Unsupported output format: $output_format"); } } /** * Override the get_output_format. We want to restrict the check to only $_GET and set the * default to rss. * @return string */ protected function get_output_format() { return $this->input->get("_format", "rss"); } }