Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options:

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

 __construct ()
 getAddButtonHtml ()
 getOptionsBoxHtml ()

Protected Member Functions

 _prepareLayout ()


Detailed Description

Definition at line 35 of file Options.php.


Constructor & Destructor Documentation

__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     }


Member Function Documentation

_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 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     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:22:45 2009 for Magento by  doxygen 1.5.8