Mage_Adminhtml_Block_Catalog_Product_Edit_Action_Attribute Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Catalog_Product_Edit_Action_Attribute:

Mage_Adminhtml_Block_Widget Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getProducts ()
 getBackButtonHtml ()
 getCancelButtonHtml ()
 getSaveButtonHtml ()
 getSaveUrl ()

Protected Member Functions

 _prepareLayout ()
 _getHelper ()


Detailed Description

Definition at line 35 of file Attribute.php.


Member Function Documentation

_getHelper (  )  [protected]

Retrive block attributes update helper

Returns:
Mage_Adminhtml_Helper_Catalog_Product_Edit_Action_Attribute

Definition at line 82 of file Attribute.php.

00083     {
00084         return $this->helper('adminhtml/catalog_product_edit_action_attribute');
00085     }

_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 38 of file Attribute.php.

00039     {
00040         $this->setChild('back_button',
00041             $this->getLayout()->createBlock('adminhtml/widget_button')
00042                 ->setData(array(
00043                     'label'     => Mage::helper('catalog')->__('Back'),
00044                     'onclick'   => 'setLocation(\''.$this->getUrl('*/catalog_product/', array('store'=>$this->getRequest()->getParam('store', 0))).'\')',
00045                     'class' => 'back'
00046                 ))
00047         );
00048 
00049         $this->setChild('reset_button',
00050             $this->getLayout()->createBlock('adminhtml/widget_button')
00051                 ->setData(array(
00052                     'label'     => Mage::helper('catalog')->__('Reset'),
00053                     'onclick'   => 'setLocation(\''.$this->getUrl('*/*/*', array('_current'=>true)).'\')'
00054                 ))
00055         );
00056 
00057         $this->setChild('save_button',
00058             $this->getLayout()->createBlock('adminhtml/widget_button')
00059                 ->setData(array(
00060                     'label'     => Mage::helper('catalog')->__('Save'),
00061                     'onclick'   => 'attributesForm.submit()',
00062                     'class'     => 'save'
00063                 ))
00064         );
00065     }

getBackButtonHtml (  ) 

Definition at line 87 of file Attribute.php.

00088     {
00089         return $this->getChildHtml('back_button');
00090     }

getCancelButtonHtml (  ) 

Definition at line 92 of file Attribute.php.

00093     {
00094         return $this->getChildHtml('reset_button');
00095     }

getProducts (  ) 

Retrive selected products for update

Returns:
unknown

Definition at line 72 of file Attribute.php.

00073     {
00074         return $this->_getHelper()->getProducts();
00075     }

getSaveButtonHtml (  ) 

Definition at line 97 of file Attribute.php.

00098     {
00099         return $this->getChildHtml('save_button');
00100     }

getSaveUrl (  ) 

Definition at line 102 of file Attribute.php.

00103     {
00104         return $this->getUrl('*/*/save', array('store'=>Mage::helper('adminhtml/catalog_product_edit_action_attribute')->getSelectedStoreId()));
00105     }


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