public function FeedsFetcherResult::__sleep in Feeds 7.2
Prevent saving the raw result when serializing object.
File
- plugins/
FeedsFetcher.inc, line 36 - Contains the FeedsFetcher and related classes.
Class
- FeedsFetcherResult
- Base class for all fetcher results.
Code
public function __sleep() {
if (!empty($this->raw)) {
// Save contents of raw to a file for later use.
$this
->saveRawToFile();
}
// Save anything but 'raw'.
unset($this->raw);
return array_keys(get_object_vars($this));
}