public function unserialize($serialized) { $spec =
unserialize($serialized);
$this->
setOptions($spec);
// Determine device class and ensure the class is loaded
$deviceClass =
$spec['device_class'
];
if (!
class_exists($deviceClass)) { $this->
_getUserAgentDevice($this->
getBrowserType());
} // Get device specification and instantiate
$deviceSpec =
unserialize($spec['device'
]);
$deviceSpec['_config'
] =
$this->
getConfig();
$deviceSpec['_server'
] =
$this->
getServer();
$this->_device =
new $deviceClass($deviceSpec);
} /**
* Configure instance
*
* @param array|Zend_Config|ArrayAccess $options
* @return Zend_Http_UserAgent
*/