ui = $ui; $this->name = $name; $this->setValue( $value ); } public function render() { $out = $this->ui->makeElement('input') ->addAttr('type', 'hidden' ) ->addAttr('name', $this->htmlName() ) ; if( (! is_array($this->value)) && (null !== $this->value) && strlen($this->value) ){ $out->addAttr('value', $this->value); } return $out; } }