class FeedsFileFetcherResult in Feeds 7.2
Definition of the import batch object created on the fetching stage by FeedsFileFetcher.
Hierarchy
- class \FeedsResult- class \FeedsFetcherResult- class \FeedsFileFetcherResult
 
 
- class \FeedsFetcherResult
Expanded class hierarchy of FeedsFileFetcherResult
File
- plugins/FeedsFileFetcher.inc, line 12 
- Home of the FeedsFileFetcher and related classes.
View source
class FeedsFileFetcherResult extends FeedsFetcherResult {
  /**
   * Constructor.
   */
  public function __construct($file_path) {
    parent::__construct('');
    $this->file_path = $file_path;
  }
  /**
   * Overrides parent::getRaw().
   */
  public function getRaw() {
    return $this
      ->sanitizeRaw(file_get_contents($this->file_path));
  }
  /**
   * Overrides parent::getFilePath().
   */
  public function getFilePath() {
    $this
      ->checkFile();
    return $this
      ->sanitizeFile($this->file_path);
  }
}Members
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| FeedsFetcherResult:: | protected | property | The path to a file where the raw data is stored. | |
| FeedsFetcherResult:: | protected | property | The raw fetched data. | |
| FeedsFetcherResult:: | protected | function | Checks that a file exists and is readable. | |
| FeedsFetcherResult:: | public | function | Constructs file name for saving the raw data. | |
| FeedsFetcherResult:: | public | function | Returns if the file to parse exists. | |
| FeedsFetcherResult:: | public | function | Returns directory for storing files that are in progress of import. | |
| FeedsFetcherResult:: | public | function | Returns the contents of a file, if it exists. | |
| FeedsFetcherResult:: | public | function | Returns if raw data exists. | |
| FeedsFetcherResult:: | public | function | Sanitize the file in place. | |
| FeedsFetcherResult:: | public | function | Sanitize the raw content string. | |
| FeedsFetcherResult:: | public | function | Sanitize the raw content string. | |
| FeedsFetcherResult:: | public | function | Saves the raw fetcher result to a file. | |
| FeedsFetcherResult:: | public | function | Prevent saving the raw result when serializing object. | |
| FeedsFileFetcherResult:: | public | function | Overrides parent::getFilePath(). Overrides FeedsFetcherResult:: | |
| FeedsFileFetcherResult:: | public | function | Overrides parent::getRaw(). Overrides FeedsFetcherResult:: | |
| FeedsFileFetcherResult:: | public | function | Constructor. Overrides FeedsFetcherResult:: | 
