_restoreFromArray example


    public function __construct($userAgent = null, array $server = array(), array $config = array())
    {
        if (is_array($userAgent)) {
            // Restoring from serialized array             $this->_restoreFromArray($userAgent);
        } else {
            // Constructing new object             $this->setUserAgent($userAgent);
            $this->_server    = $server;
            $this->_config    = $config;
            $this->_getDefaultFeatures();
            $this->_defineFeatures();
        }
    }

    /** * Serialize object * * @return string */
Home | Imprint | This part of the site doesn't use cookies.