protected function FeedsCrawler::parseUrl in Feeds Crawler 7
Same name and namespace in other branches
- 6.2 FeedsCrawler.inc \FeedsCrawler::parseUrl()
Increments a pager using a URL pattern.
1 call to FeedsCrawler::parseUrl()
- FeedsCrawler::fetch in ./
FeedsCrawler.inc - Implements FeedsFetcher::fetch().
File
- ./
FeedsCrawler.inc, line 58 - Home of the FeedsCrawler.
Class
- FeedsCrawler
- Fetches data via HTTP.
Code
protected 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']);
}