Public Member Functions | |
__construct () | |
getAddButtonHtml () | |
getOptionsBoxHtml () | |
Protected Member Functions | |
_prepareLayout () |
Definition at line 35 of file Options.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 Options.php.
00038 { 00039 parent::__construct(); 00040 $this->setTemplate('catalog/product/edit/options.phtml'); 00041 }
_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 44 of file Options.php.
00045 { 00046 $this->setChild('add_button', 00047 $this->getLayout()->createBlock('adminhtml/widget_button') 00048 ->setData(array( 00049 'label' => Mage::helper('catalog')->__('Add New Option'), 00050 'class' => 'add', 00051 'id' => 'add_new_defined_option' 00052 )) 00053 ); 00054 00055 $this->setChild('options_box', 00056 $this->getLayout()->createBlock('adminhtml/catalog_product_edit_tab_options_option') 00057 ); 00058 00059 return parent::_prepareLayout(); 00060 }
getAddButtonHtml | ( | ) |
Definition at line 62 of file Options.php.
00063 { 00064 return $this->getChildHtml('add_button'); 00065 }
getOptionsBoxHtml | ( | ) |
Definition at line 67 of file Options.php.
00068 { 00069 return $this->getChildHtml('options_box'); 00070 }