* @package tao */ class tao_helpers_form_elements_xhtml_Viewablehiddenbox extends tao_helpers_form_elements_Viewablehiddenbox { use XhtmlRenderingTrait; /** * Short description of method render * * @access public * @author Christophe Noël * @return string */ public function render() { $uid = helpers_Random::generateString(24); $this->addClass('viewable-hiddenbox-input'); $this->addAttribute('data-identifier', $uid); $value = _dh($this->value); $html = << {$this->renderLabel()} renderAttributes()} value='{$value}'/> HTML; $script = << SCRIPT; return (string) ($html . $script); } }