class FeedsForenaBlockFetcherResult in Forena Reports 7.4
Same name and namespace in other branches
- 7.5 feeds/FeedsForenaBlockFetcher.inc \FeedsForenaBlockFetcherResult
- 7.3 feeds/FeedsForenaBlockFetcher.inc \FeedsForenaBlockFetcherResult
Hierarchy
- class \FeedsResult
- class \FeedsFetcherResult
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
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 | Get a path to a temporary file containing the resource provided by the fetcher. | 1 |
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. | |
FeedsForenaBlockFetcherResult:: |
public | function |
Overrides parent::getRaw(). Overrides FeedsFetcherResult:: |
|
FeedsForenaBlockFetcherResult:: |
public | function |
Constructor. Overrides FeedsFetcherResult:: |