You are here

public function FeedsDateTime::__wakeup in Feeds 7

Same name and namespace in other branches
  1. 6 plugins/FeedsParser.inc \FeedsDateTime::__wakeup()
  2. 7.2 plugins/FeedsParser.inc \FeedsDateTime::__wakeup()

Upon unserializing, we must re-build ourselves using local variables.

File

plugins/FeedsParser.inc, line 466

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));
}