Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Abstract Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Abstract:

Mage_Adminhtml_Block_Widget_Form Mage_Adminhtml_Block_Widget Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object 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 Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Release

List of all members.

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


Detailed Description

Definition at line 34 of file Abstract.php.


Constructor & Destructor Documentation

__construct (  ) 


Member Function Documentation

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 (  ) 


Member Data Documentation

$_addRowButtonHtml [protected]

Definition at line 37 of file Abstract.php.

$_removeRowButtonHtml [protected]

Definition at line 38 of file Abstract.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:22:49 2009 for Magento by  doxygen 1.5.8