Mage_Bundle_Block_Adminhtml_Catalog_Product_Edit_Tab_Bundle Class Reference

Inheritance diagram for Mage_Bundle_Block_Adminhtml_Catalog_Product_Edit_Tab_Bundle:

Mage_Adminhtml_Block_Widget Mage_Adminhtml_Block_Widget_Tab_Interface Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getTabUrl ()
 getTabClass ()
 isReadonly ()
 getAddButtonHtml ()
 getOptionsBoxHtml ()
 getFieldSuffix ()
 getProduct ()
 getTabLabel ()
 getTabTitle ()
 canShowTab ()
 isHidden ()

Protected Member Functions

 _prepareLayout ()

Protected Attributes

 $_product = null


Detailed Description

Definition at line 34 of file Bundle.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 Bundle.php.

00038     {
00039         parent::__construct();
00040         $this->setSkipGenerateContent(true);
00041         $this->setTemplate('bundle/product/edit/bundle.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_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 (  ) 

Implements Mage_Adminhtml_Block_Widget_Tab_Interface.

Definition at line 111 of file Bundle.php.

00112     {
00113         return true;
00114     }

getAddButtonHtml (  ) 

Definition at line 83 of file Bundle.php.

00084     {
00085         return $this->getChildHtml('add_button');
00086     }

getFieldSuffix (  ) 

Definition at line 93 of file Bundle.php.

00094     {
00095         return 'product';
00096     }

getOptionsBoxHtml (  ) 

Definition at line 88 of file Bundle.php.

00089     {
00090         return $this->getChildHtml('options_box');
00091     }

getProduct (  ) 

Definition at line 98 of file Bundle.php.

00099     {
00100         return Mage::registry('product');
00101     }

getTabClass (  ) 

Definition at line 49 of file Bundle.php.

00050     {
00051         return 'ajax';
00052     }

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 (  ) 

Definition at line 44 of file Bundle.php.

00045     {
00046         return $this->getUrl('bundle/product_edit/form', array('_current' => true));
00047     }

isHidden (  ) 

Implements Mage_Adminhtml_Block_Widget_Tab_Interface.

Definition at line 115 of file Bundle.php.

00116     {
00117         return false;
00118     }

isReadonly (  ) 

Check block readonly

Returns:
boolean

Definition at line 78 of file Bundle.php.

00079     {
00080         return $this->getProduct()->getCompositeReadonly();
00081     }


Member Data Documentation

$_product = null [protected]

Definition at line 36 of file Bundle.php.


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

Generated on Sat Jul 4 17:23:34 2009 for Magento by  doxygen 1.5.8