You are here

public function DateObject::__wakeup in Date 7.3

Same name and namespace in other branches
  1. 7 date_api/date_api.module \DateObject::__wakeup()
  2. 7.2 date_api/date_api.module \DateObject::__wakeup()

Re-builds the object using local variables.

File

date_api/date_api.module, line 193
This module will make the date API available to other modules.

Class

DateObject
Extend PHP DateTime class.

Code

public function __wakeup() {
  $this
    ->__construct($this->serializedTime, new DateTimeZone($this->serializedTimezone));
}