public function to_string() { $params = array_merge($this->_params, array()); $params['width'] = $this->get_width(); $params['height'] = $this->get_height(); $params['type'] = 'application/x-java-applet'; $attrs_html = self::_get_attr_html($params); $html = "<{$this->_tagname}{$attrs_html}>"; $html .= '<param name="code" value=' . HTMLHelper::quote($this->get_code_class()) . ' />'; // $jar_url = String::put_sufix($this->get_jar_url(), '.jar', false).'?i='; $jar_url = $this->get_jar_url() . '?i='; if (!ZPHP::get_is_production()) { $jar_url .= uniqid(); } else { $jar_url .= ZPHP::get_app_version(); } $html .= '<param name="archive" value=' . HTMLHelper::quote($jar_url) . ' />'; foreach ($this->_args->to_array() as $key => $value) { $html .= '<param name=' . HTMLHelper::quote($key) . ' value=' . HTMLHelper::quote($value) . ' />'; } $html .= $this->get_error_string(); $html .= "</{$this->_tagname}>"; return $html; }