Public Member Functions | |
__construct () | |
getTabUrl () | |
getTabClass () | |
isReadonly () | |
getAddButtonHtml () | |
getOptionsBoxHtml () | |
getFieldSuffix () | |
getProduct () | |
getTabLabel () | |
getTabTitle () | |
canShowTab () | |
isHidden () | |
Protected Member Functions | |
_prepareLayout () | |
Protected Attributes | |
$_product = null |
Definition at line 34 of file Bundle.php.
__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 Bundle.php.
00038 { 00039 parent::__construct(); 00040 $this->setSkipGenerateContent(true); 00041 $this->setTemplate('bundle/product/edit/bundle.phtml'); 00042 }
_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 54 of file Bundle.php.
00055 { 00056 $this->setChild('add_button', 00057 $this->getLayout()->createBlock('adminhtml/widget_button') 00058 ->setData(array( 00059 'label' => Mage::helper('bundle')->__('Add New Option'), 00060 'class' => 'add', 00061 'id' => 'add_new_option', 00062 'on_click' => 'bOption.add()' 00063 )) 00064 ); 00065 00066 $this->setChild('options_box', 00067 $this->getLayout()->createBlock('bundle/adminhtml_catalog_product_edit_tab_bundle_option') 00068 ); 00069 00070 return parent::_prepareLayout(); 00071 }
canShowTab | ( | ) |
getAddButtonHtml | ( | ) |
Definition at line 83 of file Bundle.php.
00084 { 00085 return $this->getChildHtml('add_button'); 00086 }
getFieldSuffix | ( | ) |
getOptionsBoxHtml | ( | ) |
Definition at line 88 of file Bundle.php.
00089 { 00090 return $this->getChildHtml('options_box'); 00091 }
getProduct | ( | ) |
getTabClass | ( | ) |
getTabLabel | ( | ) |
Implements Mage_Adminhtml_Block_Widget_Tab_Interface.
Definition at line 103 of file Bundle.php.
00104 { 00105 return Mage::helper('bundle')->__('Bundle Items'); 00106 }
getTabTitle | ( | ) |
Implements Mage_Adminhtml_Block_Widget_Tab_Interface.
Definition at line 107 of file Bundle.php.
00108 { 00109 return Mage::helper('bundle')->__('Bundle Items'); 00110 }
getTabUrl | ( | ) |
isHidden | ( | ) |
isReadonly | ( | ) |
Check block readonly
Definition at line 78 of file Bundle.php.
00079 { 00080 return $this->getProduct()->getCompositeReadonly(); 00081 }
$_product = null [protected] |
Definition at line 36 of file Bundle.php.