insert($folder);
$feed = OC_News_Utils::fetch( 'http://algorithmsforthekitchen.com/blog/?feed=rss2' );
echo '
' . $feed->getTitle() . '
';
$feedmapper->insert($feed, $folder->getId());
$feed = $feedmapper->findWithItems($feed->getId());
echo '
' . $feed->getTitle() . '
';
$items = $feed->getItems();
foreach($items as $item) {
echo $item->getTitle();
}
$feed2 = $feedmapper->findWithItems(45);
echo '
' . $feed2->getTitle() . '
';
/*
$item = $feed->get_item(1);
if ($item->isRead()) {
echo $l->t('Read');
}
else {
echo $l->t('Unread');
}
$item->setRead();
$item->setUnread();
$item->setRead();
echo "
" . $item->get_title() . "
";
if ($item->isRead()) {
echo $l->t('Read');
}
else {
echo $l->t('Unread');
}
*/