Public Member Functions | |
getProducts () | |
getBackButtonHtml () | |
getCancelButtonHtml () | |
getSaveButtonHtml () | |
getSaveUrl () | |
Protected Member Functions | |
_prepareLayout () | |
_getHelper () |
Definition at line 35 of file Attribute.php.
_getHelper | ( | ) | [protected] |
Retrive block attributes update helper
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
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
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 }