summaryrefslogtreecommitdiffstats
path: root/utility
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-02 11:14:04 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-02 11:14:04 +0200
commitbd7d13ce963f286459684934257a6a1e61d7bfc7 (patch)
tree6dd818a87835bce91be3dd625a8852af5123dcb1 /utility
parent3350ed7cafa93873a6c0520e2bf0d9c05219adae (diff)
added comments on ifeedfetcher
Diffstat (limited to 'utility')
-rw-r--r--utility/ifeedfetcher.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/utility/ifeedfetcher.php b/utility/ifeedfetcher.php
index 0e3ed8732..765a8e91f 100644
--- a/utility/ifeedfetcher.php
+++ b/utility/ifeedfetcher.php
@@ -26,6 +26,20 @@
namespace OCA\News\Utility;
interface IFeedFetcher {
+
+ /**
+ * @param string url the url that the user entered in the add feed dialog
+ * box
+ * @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);
+
+ /**
+ * @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