Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Type_Select Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Type_Select:

Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Type_Abstract 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 ()
 getDeleteButtonHtml ()
 getPriceTypeSelectHtml ()

Protected Member Functions

 _prepareLayout ()


Detailed Description

Definition at line 35 of file Select.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 38 of file Select.php.

00039     {
00040         parent::__construct();
00041         $this->setTemplate('catalog/product/edit/options/type/select.phtml');
00042     }


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_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Type_Abstract.

Definition at line 44 of file Select.php.

00045     {
00046         $this->setChild('add_select_row_button',
00047             $this->getLayout()->createBlock('adminhtml/widget_button')
00048                 ->setData(array(
00049                     'label' => Mage::helper('catalog')->__('Add New Row'),
00050                     'class' => 'add add-select-row',
00051                     'id'    => 'add_select_row_button_{{option_id}}',
00052                 ))
00053         );
00054 
00055         $this->setChild('delete_select_row_button',
00056             $this->getLayout()->createBlock('adminhtml/widget_button')
00057                 ->setData(array(
00058                     'label' => Mage::helper('catalog')->__('Delete Row'),
00059                     'class' => 'delete delete-select-row icon-btn',
00060                 ))
00061         );
00062 
00063         return parent::_prepareLayout();
00064     }

getAddButtonHtml (  ) 

Definition at line 66 of file Select.php.

00067     {
00068         return $this->getChildHtml('add_select_row_button');
00069     }

getDeleteButtonHtml (  ) 

Definition at line 71 of file Select.php.

00072     {
00073         return $this->getChildHtml('delete_select_row_button');
00074     }

getPriceTypeSelectHtml (  ) 

Reimplemented from Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Type_Abstract.

Definition at line 76 of file Select.php.

00077     {
00078         $this->getChild('option_price_type')
00079             ->setData('id', 'product_option_{{id}}_select_{{select_id}}_price_type')
00080             ->setName('product[options][{{id}}][values][{{select_id}}][price_type]');
00081 
00082         return parent::getPriceTypeSelectHtml();
00083     }


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