* @see Action::showExportList()
*/
-class FeedList
+class FeedList extends Widget
{
- var $out = null;
-
- function __construct($out=null)
+ var $action = null;
+
+ function __construct($action=null)
{
- $this->out = $out;
+ parent::__construct($action);
+ $this->action = $action;
}
function show($feeds)
{
- $this->out->elementStart('div', array('class' => 'feeds'));
- $this->out->element('p', null, 'Feeds:');
+ $this->out->elementStart('div', array('id' => 'export_data',
+ 'class' => 'section'));
+ $this->out->element('h2', null, _('Export data'));
$this->out->elementStart('ul', array('class' => 'xoxo'));
foreach ($feeds as $key => $value) {
function feedItem($feed)
{
- $nickname = $this->trimmed('nickname');
+ $nickname = $this->action->trimmed('nickname');
switch($feed['item']) {
case 'notices': default: