Public Member Functions | |
__construct () | |
Protected Member Functions | |
_prepareLayout () | |
getNewButtonHtml () | |
_getHeader () |
Definition at line 35 of file Main.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 37 of file Main.php.
00038 { 00039 parent::__construct(); 00040 $this->setTemplate('catalog/product/attribute/set/toolbar/main.phtml'); 00041 }
_getHeader | ( | ) | [protected] |
Definition at line 61 of file Main.php.
00062 { 00063 return Mage::helper('catalog')->__('Manage Attribute Sets'); 00064 }
_prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 43 of file Main.php.
00044 { 00045 $this->setChild('addButton', 00046 $this->getLayout()->createBlock('adminhtml/widget_button') 00047 ->setData(array( 00048 'label' => Mage::helper('catalog')->__('Add New Set'), 00049 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/add') . '\')', 00050 'class' => 'add', 00051 )) 00052 ); 00053 return parent::_prepareLayout(); 00054 }
getNewButtonHtml | ( | ) | [protected] |
Definition at line 56 of file Main.php.
00057 { 00058 return $this->getChildHtml('addButton'); 00059 }