public function RulesIdentifiableDataWrapper::__wakeup in Rules 7.2
Prepare for unserialization.
File
- includes/
rules.state.inc, line 769 - Contains the state and data related stuff.
Class
- RulesIdentifiableDataWrapper
- A wrapper class similar to the EntityDrupalWrapper, but for non-entities.
Code
public function __wakeup() {
if ($this->id !== FALSE) {
// Make sure data is set, so the data will be loaded when needed.
$this->data = FALSE;
}
}