*/ class Mage_Adminhtml_Block_Widget_Button extends Mage_Adminhtml_Block_Widget { public function __construct() { parent::__construct(); } public function getType() { return ($type=$this->getData('type')) ? $type : 'button'; } public function getOnClick() { if (!$this->getData('on_click')) { return $this->getData('onclick'); } return $this->getData('on_click'); } protected function _toHtml() { $html = $this->getBeforeHtml().''.$this->getAfterHtml(); return $html; } }