8 echo
"The following feed content have been updated:</br>";
12 echo
$feed_id = $feed->rss_title.
"</br>";
14 $rssurl = simplexml_load_file($feed->rss_url,
"SimpleXMLElement", LIBXML_NOCDATA);
16 foreach ($rssurl->channel->item as $item)
20 $rss = $feed->findArticleByURL($item->link);
22 catch(DataNotFoundException $e)
27 $rss->rss_feed_id = $feed->rss_feed_id;
28 $rss->rss_title = $item->title;
29 $rss->article_date = date(
"Y-m-d H:i:s", strtotime($item->pubDate));
30 $rss->rss_article_URL = $item->link;
31 $rss->rss_article_newsStory = $item->description;
32 $rss->rss_article_content = $item->children(
'content',
true)->encoded;
33 $rss->rss_thumbnail = $item->children(
'media',
true)->content->attributes();
34 $rss->publish_status = $feed->rss_trusted;
41 <a
class=
'button' href=
'rss_feed'>« Back
to RSS Feed List</a>
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).