30 $mgr->upgrade($version);
35 echo
"The following feed content have been updated:</br>";
39 echo
$feed_id = $feed->rss_title.
"</br>";
41 $rssurl = simplexml_load_file($feed->rss_url,
"SimpleXMLElement", LIBXML_NOCDATA);
43 foreach ($rssurl->channel->item as $item)
47 $rss = $feed->findArticleByURL($item->link);
49 catch(DataNotFoundException $e)
54 $rss->rss_feed_id = $feed->rss_feed_id;
55 $rss->rss_title = $item->title;
56 $rss->article_date = date(
"Y-m-d H:i:s", strtotime($item->pubDate));
57 $rss->rss_article_URL = $item->link;
58 $rss->rss_article_newsStory = $item->description;
59 $rss->rss_article_content = $item->children(
'content',
true)->encoded;
60 $rss->publish_status = $feed->rss_trusted;
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
static registerWorker($component, $task_name, $handler, $hourly=false)
Registers a Scheduled Task worker method.