You are here

protected function FeedsCrawlerBase::getFetcherResult in Feeds Crawler 7.2

Returns a new fetcher result object.

Parameters

string $url: The URL for the fetcher result.

Return value

FeedsHTTPFetcherResult A fetcher result object.

1 call to FeedsCrawlerBase::getFetcherResult()
FeedsCrawlerBase::fetch in src/FeedsCrawlerBase.php

File

src/FeedsCrawlerBase.php, line 205
Contains FeedsCrawler.

Class

FeedsCrawlerBase
The fetcher class that implements crawling.

Code

protected function getFetcherResult($url) {
  $result = new FeedsHTTPFetcherResult($url);

  // When request_timeout is empty, the global value is used.
  $result
    ->setTimeout($this->config['request_timeout']);
  $result
    ->setAcceptInvalidCert($this->config['accept_invalid_cert']);
  return $result;
}