Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Toolbar_Add Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Toolbar_Add:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Protected Member Functions

 _construct ()
 _prepareLayout ()
 _getHeader ()
 getSaveButtonHtml ()
 getBackButtonHtml ()
 getFormHtml ()
 getFormId ()


Detailed Description

Definition at line 34 of file Add.php.


Member Function Documentation

_construct (  )  [protected]

Internal constructor, that is called from real constructor

Please override this one instead of overriding real __construct constructor

Please override this one instead of overriding real __construct constructor

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 36 of file Add.php.

00037     {
00038         $this->setTemplate('catalog/product/attribute/set/toolbar/add.phtml');
00039     }

_getHeader (  )  [protected]

Definition at line 64 of file Add.php.

00065     {
00066         return Mage::helper('catalog')->__('Add New Attribute Set');
00067     }

_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 41 of file Add.php.

00042     {
00043         $this->setChild('save_button',
00044             $this->getLayout()->createBlock('adminhtml/widget_button')
00045                 ->setData(array(
00046                     'label'     => Mage::helper('catalog')->__('Save Attribute Set'),
00047                     'onclick'   => 'addSet.submit();',
00048                     'class' => 'save'
00049         )));
00050         $this->setChild('back_button',
00051             $this->getLayout()->createBlock('adminhtml/widget_button')
00052                 ->setData(array(
00053                     'label'     => Mage::helper('catalog')->__('Back'),
00054                     'onclick'   => 'setLocation(\''.$this->getUrl('*/*/').'\')',
00055                     'class' => 'back'
00056         )));
00057 
00058         $this->setChild('setForm',
00059             $this->getLayout()->createBlock('adminhtml/catalog_product_attribute_set_main_formset')
00060         );
00061         return parent::_prepareLayout();
00062     }

getBackButtonHtml (  )  [protected]

Definition at line 74 of file Add.php.

00075     {
00076         return $this->getChildHtml('back_button');
00077     }

getFormHtml (  )  [protected]

Definition at line 79 of file Add.php.

00080     {
00081         return $this->getChildHtml('setForm');
00082     }

getFormId (  )  [protected]

Definition at line 84 of file Add.php.

00085     {
00086         return $this->getChild('setForm')->getForm()->getId();
00087     }

getSaveButtonHtml (  )  [protected]

Definition at line 69 of file Add.php.

00070     {
00071         return $this->getChildHtml('save_button');
00072     }


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

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