public function FeedsFetcher::path in Feeds 7
Same name and namespace in other branches
- 6 plugins/FeedsFetcher.inc \FeedsFetcher::path()
- 7.2 plugins/FeedsFetcher.inc \FeedsFetcher::path()
Construct a path for a concrete fetcher/source combination. The result of this method matches up with the general path definition in FeedsFetcher::menuItem(). For example usage look at FeedsHTTPFetcher.
Return value
Path for this fetcher/source combination.
2 calls to FeedsFetcher::path()
- FeedsHTTPFetcher::subscribe in plugins/
FeedsHTTPFetcher.inc - Implement FeedsFetcher::subscribe() - subscribe to hub.
- FeedsHTTPFetcher::unsubscribe in plugins/
FeedsHTTPFetcher.inc - Implement FeedsFetcher::unsubscribe() - unsubscribe from hub.
File
- plugins/
FeedsFetcher.inc, line 50
Class
- FeedsFetcher
- Abstract class, defines shared functionality between fetchers.
Code
public function path($feed_nid = 0) {
$id = urlencode($this->id);
if ($feed_nid && is_numeric($feed_nid)) {
return "feeds/importer/{$id}/{$feed_nid}";
}
return "feeds/importer/{$id}";
}