You are here

private function FeedsCrawler::parseUrl in Feeds Crawler 6.2

Same name and namespace in other branches
  1. 7 FeedsCrawler.inc \FeedsCrawler::parseUrl()
1 call to FeedsCrawler::parseUrl()
FeedsCrawler::fetch in ./FeedsCrawler.inc
Implements FeedsFetcher::fetch().

File

./FeedsCrawler.inc, line 64
Home of the FeedsCrawler.

Class

FeedsCrawler
Fetches data via HTTP.

Code

private function parseUrl($config, $state) {
  if (!isset($state->inc)) {
    $state->inc = $config['url']['initial'];
  }
  else {
    $state->inc += $config['url']['increment'];
  }
  return str_replace('$index', $state->inc, $config['url']['url_pattern']);
}