_index = $index; $this->_message = $this->convert_high_ascii($message); $this->_type = $type; $this->_timeout = $timeout; $this->_uri = $uri; $this->_icon = $icon; $this->_color = $color; } function render() { $index = $this->escape($this->_index); $message = $this->escape($this->_message); $type = $this->escape($this->_type); $timeout = $this->_timeout; $uri = $this->escape($this->_uri); $xml = "_color!='') $xml .= " Color=\"{$this->_color}\""; if ($type!='') { $xml .= " type=\"{$type}\""; if ($timeout!=NULL) $xml .= " Timeout=\"{$timeout}\""; } if ($uri!='') $xml .= " URI=\"{$uri}\""; if($this->_icon!=0) $xml .= " icon=\"{$this->_icon}\""; $xml .= ">{$message}\n"; return($xml); } } ?>