/** * Returns the attachment element in HTML * * @return string The html text * @access public */ function toHtml() { if ($this->_flagFrozen) { return $this->getFrozenHtml(); } elseif ($this->_state == QF_ATTACHMENT_UPLOADED) { // Return the frozen html ... $html = $this->getFrozenHtml(); // ... and append the html of the unload element (if any) if (isset($this->_unload_element)) { $html .= ' ' . $this->_unload_element->toHtml(); } return $html; } return HTML_QuickForm_input::toHtml(); }