From d6066c382083dedf426abbfd5f2f1df725c68aaf Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 27 Sep 2013 20:03:00 +0200 Subject: use seperate direcotires for article enhancers and fetchers --- fetcher/ifeedfetcher.php | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 fetcher/ifeedfetcher.php (limited to 'fetcher/ifeedfetcher.php') diff --git a/fetcher/ifeedfetcher.php b/fetcher/ifeedfetcher.php new file mode 100644 index 000000000..5fa7fc678 --- /dev/null +++ b/fetcher/ifeedfetcher.php @@ -0,0 +1,47 @@ +. +* +*/ + +namespace OCA\News\Fetcher; + +interface IFeedFetcher { + + /** + * @param string url the url that the user entered in the add feed dialog + * box + * @throws FetcherException if the fetcher encounters a problem + * @return array with the first element being the feed and the + * second element being an array of items. Those items will be saved into + * into the database + */ + function fetch($url, $getFavicon=true); + + /** + * @param string $url the url that should be fetched + * @return boolean if the fetcher can handle the url. This fetcher will be + * used exclusively to fetch the feed and the items of the page + */ + function canHandle($url); + +} \ No newline at end of file -- cgit v1.2.3