You are here

public function FeedsSimplePieEnclosure::__wakeup in Feeds 7

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

Unserialization helper.

Ensure that the simplepie class definitions are loaded for the enclosure when unserializing.

File

plugins/FeedsSimplePieParser.inc, line 32

Class

FeedsSimplePieEnclosure
Adapter to present SimplePie_Enclosure as FeedsEnclosure object.

Code

public function __wakeup() {
  feeds_include_library('simplepie.inc', 'simplepie');
  $this->simplepie_enclosure = unserialize($this->_serialized_simplepie_enclosure);
}