* @package tao */ class tao_helpers_form_elements_xhtml_Textbox extends tao_helpers_form_elements_Textbox { use XhtmlRenderingTrait; /** * (non-PHPdoc) * * @see tao_helpers_form_FormElement::render() */ public function render() { $returnValue = $this->renderLabel(); $hasUnit = ! empty($this->unit); if ($hasUnit) { $this->addClass('has-unit'); } $returnValue .= "renderAttributes(); $returnValue .= ' value="' . _dh($this->value) . '" />'; if ($hasUnit) { $returnValue .= ''; } return (string) $returnValue; } }