You are here

public function FeedsFetcher::path in Feeds 7.2

Same name and namespace in other branches
  1. 6 plugins/FeedsFetcher.inc \FeedsFetcher::path()
  2. 7 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 346
Contains the FeedsFetcher and related classes.

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}";
}