/** * @param boolean $bypassSerialization enables PS2 support */ public function getData($bypassSerialization = false) { if ($bypassSerialization) { return parent::getData(); } $data = parent::getData(); if (!is_null($data)) { return unserialize($data); } return null; }
/** * @param boolean $bypassSerialization enables PS2 support */ public function getData($bypassSerialization = false) { if ($bypassSerialization) { return parent::getData(); } $data = parent::getData(); if (!is_null($data)) { try { $unserializedData = unserialize($data); if ($unserializedData instanceof kJobCompressedData) { $serializedJobData = $unserializedData->getSerializedJobData(); $unserializedData = unserialize($serializedJobData); } return $unserializedData; } catch (Exception $e) { return null; } } return null; }