ui = $ui; $this->label = $label; $this->alt = ((null !== $alt) && strlen($alt)) ? $alt : $label; $this->name = $name; } public function setFormAction( $set ) { $this->formAction = $set; if( NULL === $this->name ){ $this->name = 'hca'; $this->addAttr( 'value', $set ); } return $this; } public function getFormAction() { return $this->formAction; } public function render() { $this ->addAttr('type', 'submit' ) ->addAttr('name', $this->htmlName() ) ->addAttr('title', $this->alt ) // ->addAttr('value', $this->label, FALSE ) ; $this->setChild( 'label', $this->label ); if( NULL !== $this->formAction ){ $this ->addAttr('formaction', $this->formAction ) ; } $out = parent::render(); return $out; } }