summaryrefslogtreecommitdiffstats
path: root/fetcher/fetcher.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-12 23:05:43 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-12 23:05:43 +0200
commit541318cb81710ef080b30cc790681ace773c11ac (patch)
tree74d3c0ae992e6c0b7887c1c5cfce2cc24ca64019 /fetcher/fetcher.php
parenta72ed5f93f430ffb94ea87c5487e9e8ec0dd9642 (diff)
more fixes
Diffstat (limited to 'fetcher/fetcher.php')
-rw-r--r--fetcher/fetcher.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/fetcher/fetcher.php b/fetcher/fetcher.php
index 3d5780f7e..50017b7a5 100644
--- a/fetcher/fetcher.php
+++ b/fetcher/fetcher.php
@@ -23,11 +23,22 @@ class Fetcher {
}
+ /**
+ * Add an additional fetcher
+ * @param IFeedFetcher $fetcher the fetcher
+ */
public function registerFetcher(IFeedFetcher $fetcher){
array_push($this->fetchers, $fetcher);
}
-
+ /**
+ * Fetch a feed from remote
+ * @param string url remote url of the feed
+ * @param boolean $getFavicon if the favicon should also be fetched, defaults
+ * to true
+ * @throws FetcherException if simple pie fails
+ * @return array an array containing the new feed and its items
+ */
public function fetch($url, $getFavicon=true){
foreach($this->fetchers as $fetcher){
if($fetcher->canHandle($url)){