* @author Pierre-Luc Paour * @author Daniel Grund */ GalleryCoreApi::requireOnce('modules/rss/classes/RssMapHelper.class'); /** * This view will show a list of feeds. * * @package RSS * @subpackage UserInterface */ class FeedListView extends GalleryView { /** * @see GalleryView::loadTemplate */ function loadTemplate(&$template, &$form) { global $gallery; list ($ret, $feeds) = RssMapHelper::fetchFeedsForItem(); if ($ret) { return array($ret->wrap(__FILE__, __LINE__), null); } $FeedList['feeds'] = $feeds; $template->setVariable('FeedList', $FeedList); $template->setVariable('view', 'rss.FeedList'); return array(null, array('body' => 'modules/rss/templates/FeedList.tpl')); } } ?>