You are here

public function FeedsFetcherResult::getFileContents in Feeds 7.2

Returns the contents of a file, if it exists.

Return value

string The file contents.

1 call to FeedsFetcherResult::getFileContents()
FeedsFetcherResult::getRaw in plugins/FeedsFetcher.inc
Returns the raw content.

File

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

Class

FeedsFetcherResult
Base class for all fetcher results.

Code

public function getFileContents() {
  if ($this
    ->fileExists()) {
    $this
      ->sanitizeFile($this->file_path);
    return file_get_contents($this->file_path);
  }
}