summaryrefslogtreecommitdiffstats
path: root/fetcher/fetcher.php
diff options
context:
space:
mode:
Diffstat (limited to 'fetcher/fetcher.php')
-rw-r--r--fetcher/fetcher.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/fetcher/fetcher.php b/fetcher/fetcher.php
index 4787ccfdd..43c9e7a3f 100644
--- a/fetcher/fetcher.php
+++ b/fetcher/fetcher.php
@@ -44,16 +44,21 @@ class Fetcher {
* no results are fetched
* @param bool fullTextEnabled if true tells the fetcher to enhance the
* articles by fetching custom enhanced content
+ * @param string $basicAuthUser if given, basic auth is set for this feed
+ * @param string $basicAuthPassword if given, basic auth is set for this
+ * feed. Ignored if user is null or an empty string
* @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, $fullTextEnabled=false) {
+ $etag=null, $fullTextEnabled=false,
+ $basicAuthUser=null, $basicAuthPassword=null) {
foreach($this->fetchers as $fetcher){
if($fetcher->canHandle($url)){
return $fetcher->fetch($url, $getFavicon, $lastModified, $etag,
- $fullTextEnabled);
+ $fullTextEnabled, $basicAuthUser,
+ $basicAuthPassword);
}
}