public function FeedsDateTime::__wakeup in Feeds 7.2
Same name and namespace in other branches
- 6 plugins/FeedsParser.inc \FeedsDateTime::__wakeup()
- 7 plugins/FeedsParser.inc \FeedsDateTime::__wakeup()
Upon unserializing, we must re-build ourselves using local variables.
File
- plugins/
FeedsParser.inc, line 780 - Contains FeedsParser and related classes.
Class
- FeedsDateTime
- Extend PHP DateTime class with granularity handling, merge functionality and slightly more flexible initialization parameters.
Code
public function __wakeup() {
$this
->__construct($this->_serialized_time, new DateTimeZone($this->_serialized_timezone));
}