Public Member Functions | |
getAttributes () | |
getTabLabel () | |
getTabTitle () | |
canShowTab () | |
isHidden () | |
Protected Member Functions | |
_construct () | |
_prepareForm () | |
_getAdditionalElementTypes () | |
_getAdditionalElementHtml ($element) |
Definition at line 35 of file Attributes.php.
_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 39 of file Attributes.php.
00040 { 00041 parent::_construct(); 00042 $this->setShowGlobalIcon(true); 00043 }
_getAdditionalElementHtml | ( | $ | element | ) | [protected] |
Custom additional elemnt html
Varien_Data_Form_Element_Abstract | $element |
Reimplemented from Mage_Adminhtml_Block_Widget_Form.
Definition at line 93 of file Attributes.php.
00094 { 00095 return '<span class="attribute-change-checkbox"><input type="checkbox" id="' . $element->getId() 00096 . '-checkbox" onclick="toogleFieldEditMode(this, \'' . $element->getId() 00097 . '\')" /><label for="' . $element->getId() . '-checkbox">' . Mage::helper('catalog')->__('Change') 00098 . '</label></span> 00099 <script type="text/javascript">initDisableFields(\''.$element->getId().'\')</script>'; 00100 }
_getAdditionalElementTypes | ( | ) | [protected] |
Additional element types for product attributes
Reimplemented from Mage_Adminhtml_Block_Widget_Form.
Definition at line 78 of file Attributes.php.
00079 { 00080 return array( 00081 'price' => Mage::getConfig()->getBlockClassName('adminhtml/catalog_product_helper_form_price'), 00082 'image' => Mage::getConfig()->getBlockClassName('adminhtml/catalog_product_helper_form_image'), 00083 'boolean' => Mage::getConfig()->getBlockClassName('adminhtml/catalog_product_helper_form_boolean') 00084 ); 00085 }
_prepareForm | ( | ) | [protected] |
Prepare form before rendering HTML
Initialize product object as form property for using it in elements generation
Reimplemented from Mage_Adminhtml_Block_Widget_Form.
Definition at line 45 of file Attributes.php.
00046 { 00047 $this->setFormExcludedFieldList(array('tier_price','gallery', 'media_gallery')); 00048 Mage::dispatchEvent('adminhtml_catalog_product_form_prepare_excluded_field_list', array('object'=>$this)); 00049 00050 $form = new Varien_Data_Form(); 00051 $fieldset = $form->addFieldset('fields', array('legend'=>Mage::helper('catalog')->__('Attributes'))); 00052 $attributes = $this->getAttributes(); 00053 /** 00054 * Initialize product object as form property 00055 * for using it in elements generation 00056 */ 00057 $form->setDataObject(Mage::getModel('catalog/product')); 00058 $this->_setFieldset($attributes, $fieldset, $this->getFormExcludedFieldList()); 00059 $form->setFieldNameSuffix('attributes'); 00060 $this->setForm($form); 00061 }
canShowTab | ( | ) |
Implements Mage_Adminhtml_Block_Widget_Tab_Interface.
Definition at line 115 of file Attributes.php.
getAttributes | ( | ) |
Retrive attributes for product massupdate
Definition at line 68 of file Attributes.php.
00069 { 00070 return $this->helper('adminhtml/catalog_product_edit_action_attribute')->getAttributes()->getItems(); 00071 }
getTabLabel | ( | ) |
######################## TAB settings #################################
Implements Mage_Adminhtml_Block_Widget_Tab_Interface.
Definition at line 105 of file Attributes.php.
00106 { 00107 return Mage::helper('catalog')->__('Attributes'); 00108 }
getTabTitle | ( | ) |
Implements Mage_Adminhtml_Block_Widget_Tab_Interface.
Definition at line 110 of file Attributes.php.
00111 { 00112 return Mage::helper('catalog')->__('Attributes'); 00113 }
isHidden | ( | ) |
Implements Mage_Adminhtml_Block_Widget_Tab_Interface.
Definition at line 120 of file Attributes.php.