You are here

public function FeedsFetcherResult::rawExists in Feeds 7.2

Returns if raw data exists.

This checks if either $this->raw is set or if the raw data exists in a file. This is better then calling just ::getRaw() as that would return a copy of all raw data which may lead to memory issues if the data is very large.

Return value

bool True if the raw data exists. False otherwise.

1 call to FeedsFetcherResult::rawExists()
FeedsHTTPFetcherResult::getRaw in plugins/FeedsHTTPFetcher.inc
Overrides FeedsFetcherResult::getRaw().

File

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

Class

FeedsFetcherResult
Base class for all fetcher results.

Code

public function rawExists() {
  return !empty($this->raw) || $this
    ->fileExists();
}