Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Toolbar_Main Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Toolbar_Main:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()

Protected Member Functions

 _prepareLayout ()
 getNewButtonHtml ()
 _getHeader ()


Detailed Description

Definition at line 35 of file Main.php.


Constructor & Destructor Documentation

__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     }


Member Function Documentation

_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

Returns:
Mage_Core_Block_Abstract

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     }


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

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