Public Member Functions | |
__construct () | |
getType () | |
getOnClick () | |
Protected Member Functions | |
_toHtml () |
Definition at line 34 of file Button.php.
__construct | ( | ) |
Constructor
By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes
Reimplemented from Varien_Object.
Definition at line 36 of file Button.php.
00037 { 00038 parent::__construct(); 00039 }
_toHtml | ( | ) | [protected] |
Render block HTML
Reimplemented from Mage_Core_Block_Template.
Reimplemented in Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Attributes_Create.
Definition at line 54 of file Button.php.
00055 { 00056 $html = $this->getBeforeHtml().'<button ' 00057 . ($this->getId()?' id="'.$this->getId() . '"':'') 00058 . ($this->getName()?' name="'.$this->getName() . '"':'') 00059 . ' type="'.$this->getType() . '"' 00060 . ' class="scalable '.$this->getClass().'"' 00061 . ' onclick="'.$this->getOnClick().'"' 00062 . ' style="'.$this->getStyle() .'"' 00063 . ($this->getValue()?' value="'.$this->getValue() . '"':'') 00064 . ($this->getDisabled() ? 'disabled="disabled"' : '') 00065 . '><span>' .$this->getLabel().'</span></button>'.$this->getAfterHtml(); 00066 00067 return $html; 00068 }
getOnClick | ( | ) |
Definition at line 46 of file Button.php.
00047 { 00048 if (!$this->getData('on_click')) { 00049 return $this->getData('onclick'); 00050 } 00051 return $this->getData('on_click'); 00052 }
getType | ( | ) |
Definition at line 41 of file Button.php.
00042 { 00043 return ($type=$this->getData('type')) ? $type : 'button'; 00044 }