label = $label; $this->alt = ( (null !== $alt) && strlen($alt) ) ? $alt : $label; $this->name = $name; } public function render() { $this ->addAttr('type', 'button' ) ->addAttr('name', $this->htmlName() ) ->addAttr('title', $this->alt ) ->addAttr('value', $this->label ) ; $out = parent::render(); return $out; } }