3 * Copyright (c) Xerox, 2009. All Rights Reserved.
4 * Originally written by Nicolas Terray, 2009. Xerox Codendi Team.
5 * Copyright 2012, Franck Villaume - TrivialDev
6 * This file is a part of Fusionforge.
8 * Fusionforge is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * Fusionforge is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with Fusionforge. If not, see <http://www.gnu.org/licenses/>.
22 require_once 'Widget_Rss.class.php';
23 require_once 'Widget.class.php';
28 * Allow to add RSS feed into project homepage
31 class Widget_ProjectRss extends Widget_Rss {
32 function Widget_ProjectRss() {
33 $request =& HTTPRequest::instance();
34 $this->Widget_Rss('projectrss', $request->get('group_id'), WidgetLayoutManager::OWNER_TYPE_GROUP);
36 function canBeUsedByProject(&$project) {
39 function getDescription() {
40 return _("Include public rss (or atom) feeds into project homepage.");