You are here

public function FeedsFetcherResult::getRaw in Feeds 7.2

Returns the raw content.

Return value

string The raw content from the source as a string.

Throws

Exception Extending classes MAY throw an exception if a problem occurred.

2 calls to FeedsFetcherResult::getRaw()
FeedsFetcherResult::saveRawToFile in plugins/FeedsFetcher.inc
Saves the raw fetcher result to a file.
FeedsHTTPFetcherResult::getRaw in plugins/FeedsHTTPFetcher.inc
Overrides FeedsFetcherResult::getRaw().
2 methods override FeedsFetcherResult::getRaw()
FeedsFileFetcherResult::getRaw in plugins/FeedsFileFetcher.inc
Overrides parent::getRaw().
FeedsHTTPFetcherResult::getRaw in plugins/FeedsHTTPFetcher.inc
Overrides FeedsFetcherResult::getRaw().

File

plugins/FeedsFetcher.inc, line 56
Contains the FeedsFetcher and related classes.

Class

FeedsFetcherResult
Base class for all fetcher results.

Code

public function getRaw() {
  if (empty($this->raw)) {

    // Return raw contents from file.
    return $this
      ->getFileContents();
  }
  return $this
    ->sanitizeRawOptimized($this->raw);
}