src/Zend/Http/UserAgent.php
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);
    }
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);
    }
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 ) ; }
Unserialize a previous representation of the object

@param  string $serialized
@return void
Unserialize a previous representation of the object