From ad7ace9b72532512c67953d7149854312b6b195d Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 19 Nov 2008 02:31:20 +0000 Subject: The continuing evolution of the slideshow... 1) added a mime_type property to the item module(no database change) 2) created a media_rss module 3) moved most of the functionality for the downloading the images to the media_rss module --- modules/slideshow/controllers/slideshow.php | 50 ----------------------------- 1 file changed, 50 deletions(-) delete mode 100644 modules/slideshow/controllers/slideshow.php (limited to 'modules/slideshow/controllers') diff --git a/modules/slideshow/controllers/slideshow.php b/modules/slideshow/controllers/slideshow.php deleted file mode 100644 index 57553227..00000000 --- a/modules/slideshow/controllers/slideshow.php +++ /dev/null @@ -1,50 +0,0 @@ -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"); - } -} \ No newline at end of file -- cgit v1.2.3