summaryrefslogtreecommitdiffstats
path: root/fetcher/fetcher.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-08-10 20:20:30 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2015-08-12 17:05:18 +0200
commit53679811da855acf9bd944a389a48399ca5d5a15 (patch)
treefa75e06a965fb5751017288a5c135bc179574210 /fetcher/fetcher.php
parentc77a6705d34c81cb933f3d4b83eb18e2b586035a (diff)
serverside full text
remove enhancers add full text client side implementation fix bugs and tests for full text feed
Diffstat (limited to 'fetcher/fetcher.php')
-rw-r--r--fetcher/fetcher.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/fetcher/fetcher.php b/fetcher/fetcher.php
index c93402e7f..4787ccfdd 100644
--- a/fetcher/fetcher.php
+++ b/fetcher/fetcher.php
@@ -42,15 +42,18 @@ class Fetcher {
* @param string $etag an etag from an http header.
* If lastModified matches the http header from the feed
* no results are fetched
+ * @param bool fullTextEnabled if true tells the fetcher to enhance the
+ * articles by fetching custom enhanced content
* @throws FetcherException if simple pie fails
* @return array an array containing the new feed and its items, first
* element being the Feed and second element being an array of Items
*/
public function fetch($url, $getFavicon=true, $lastModified=null,
- $etag=null) {
+ $etag=null, $fullTextEnabled=false) {
foreach($this->fetchers as $fetcher){
if($fetcher->canHandle($url)){
- return $fetcher->fetch($url, $getFavicon, $lastModified, $etag);
+ return $fetcher->fetch($url, $getFavicon, $lastModified, $etag,
+ $fullTextEnabled);
}
}
@@ -58,4 +61,4 @@ class Fetcher {
}
-} \ No newline at end of file
+}