You are here

class FeedsForenaBlockFetcherResult in Forena Reports 7.5

Same name and namespace in other branches
  1. 7.3 feeds/FeedsForenaBlockFetcher.inc \FeedsForenaBlockFetcherResult
  2. 7.4 feeds/FeedsForenaBlockFetcher.inc \FeedsForenaBlockFetcherResult

Hierarchy

Expanded class hierarchy of FeedsForenaBlockFetcherResult

File

feeds/FeedsForenaBlockFetcher.inc, line 3

View source
class FeedsForenaBlockFetcherResult extends FeedsFetcherResult {

  // Constructor for fetcher result
  public function __construct($block, $data) {
    parent::__construct('');
    $this->block = $block;
    $this->data = $data;
  }

  /**
   * Overrides parent::getRaw().
   */
  public function getRaw() {
    $xml = forena_xml($this->block, $this->data);
    $raw = '';
    if (is_object($xml) && method_exists($xml, 'asXML')) {
      $raw = $xml
        ->asXML();
    }
    return $this
      ->sanitizeRaw($raw);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FeedsFetcherResult::$file_path protected property The path to a file where the raw data is stored.
FeedsFetcherResult::$raw protected property The raw fetched data.
FeedsFetcherResult::checkFile protected function Checks that a file exists and is readable.
FeedsFetcherResult::constructFilePath public function Constructs file name for saving the raw data.
FeedsFetcherResult::fileExists public function Returns if the file to parse exists.
FeedsFetcherResult::getFeedsInProgressDir public function Returns directory for storing files that are in progress of import.
FeedsFetcherResult::getFileContents public function Returns the contents of a file, if it exists.
FeedsFetcherResult::getFilePath public function Get a path to a temporary file containing the resource provided by the fetcher. 1
FeedsFetcherResult::rawExists public function Returns if raw data exists.
FeedsFetcherResult::sanitizeFile public function Sanitize the file in place.
FeedsFetcherResult::sanitizeRaw public function Sanitize the raw content string.
FeedsFetcherResult::sanitizeRawOptimized public function Sanitize the raw content string.
FeedsFetcherResult::saveRawToFile public function Saves the raw fetcher result to a file.
FeedsFetcherResult::__sleep public function Prevent saving the raw result when serializing object.
FeedsForenaBlockFetcherResult::getRaw public function Overrides parent::getRaw(). Overrides FeedsFetcherResult::getRaw
FeedsForenaBlockFetcherResult::__construct public function Constructor. Overrides FeedsFetcherResult::__construct