Public Member Functions | |
__construct () | |
initForm () | |
getValue ($key, $default='') | |
getSelected ($key, $value) | |
getChecked ($key) | |
getAddRowButtonHtml ($container, $template, $title='Add') | |
getRemoveRowButtonHtml ($selector='span') | |
Protected Attributes | |
$_addRowButtonHtml | |
$_removeRowButtonHtml |
Definition at line 34 of file Abstract.php.
__construct | ( | ) |
Class constructor
Reimplemented from Mage_Adminhtml_Block_Widget_Form.
Reimplemented in Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Contents, Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Depends, Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Maintainers, Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Package, and Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Release.
Definition at line 40 of file Abstract.php.
00041 { 00042 parent::__construct(); 00043 $this->setData(Mage::getSingleton('adminhtml/session')->getCustomExtensionPackageFormData()); 00044 }
getAddRowButtonHtml | ( | $ | container, | |
$ | template, | |||
$ | title = 'Add' | |||
) |
Definition at line 67 of file Abstract.php.
00068 { 00069 if (!isset($this->_addRowButtonHtml[$container])) { 00070 $this->_addRowButtonHtml[$container] = $this->getLayout() 00071 ->createBlock('adminhtml/widget_button') 00072 ->setType('button') 00073 ->setClass('add') 00074 ->setLabel($this->__($title)) 00075 ->setOnClick("addRow('".$container."', '".$template."')") 00076 ->toHtml(); 00077 } 00078 return $this->_addRowButtonHtml[$container]; 00079 }
getChecked | ( | $ | key | ) |
Definition at line 62 of file Abstract.php.
00063 { 00064 return $this->getData($key) ? 'checked="checked"' : ''; 00065 }
getRemoveRowButtonHtml | ( | $ | selector = 'span' |
) |
Definition at line 81 of file Abstract.php.
00082 { 00083 if (!$this->_removeRowButtonHtml) { 00084 $this->_removeRowButtonHtml = $this->getLayout() 00085 ->createBlock('adminhtml/widget_button') 00086 ->setType('button') 00087 ->setClass('delete') 00088 ->setLabel($this->__('Remove')) 00089 ->setOnClick("removeRow(this, '".$selector."')") 00090 ->toHtml(); 00091 } 00092 return $this->_removeRowButtonHtml; 00093 }
getSelected | ( | $ | key, | |
$ | value | |||
) |
Definition at line 57 of file Abstract.php.
00058 { 00059 return $this->getData($key)==$value ? 'selected="selected"' : ''; 00060 }
getValue | ( | $ | key, | |
$ | default = '' | |||
) |
Definition at line 51 of file Abstract.php.
00052 { 00053 $value = $this->getData($key); 00054 return htmlspecialchars($value ? $value : $default); 00055 }
initForm | ( | ) |
Reimplemented in Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Depends, Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Package, and Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Release.
Definition at line 46 of file Abstract.php.
$_addRowButtonHtml [protected] |
Definition at line 37 of file Abstract.php.
$_removeRowButtonHtml [protected] |
Definition at line 38 of file Abstract.php.