Mage_Downloadable_Block_Adminhtml_Catalog_Product_Edit_Tab_Downloadable Class Reference

Inheritance diagram for Mage_Downloadable_Block_Adminhtml_Catalog_Product_Edit_Tab_Downloadable:

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 ()
 isReadonly ()
 getProduct ()
 getTabLabel ()
 getTabTitle ()
 canShowTab ()
 isHidden ()

Protected Member Functions

 _toHtml ()

Protected Attributes

 $_product = null
 $_config = null


Detailed Description

Definition at line 34 of file Downloadable.php.


Constructor & Destructor Documentation

__construct (  ) 

Class constructor

Reimplemented from Varien_Object.

Definition at line 50 of file Downloadable.php.

00051     {
00052         parent::__construct();
00053 //        $this->setSkipGenerateContent(true);
00054         $this->setTemplate('downloadable/product/edit/downloadable.phtml');
00055     }


Member Function Documentation

_toHtml (  )  [protected]

Render block HTML

Returns:
string

Reimplemented from Mage_Core_Block_Template.

Definition at line 142 of file Downloadable.php.

00143     {
00144         $accordion = $this->getLayout()->createBlock('adminhtml/widget_accordion')
00145             ->setId('downloadableInfo');
00146 
00147         $accordion->addItem('samples', array(
00148             'title'   => Mage::helper('adminhtml')->__('Samples'),
00149             'content' => $this->getLayout()->createBlock('downloadable/adminhtml_catalog_product_edit_tab_downloadable_samples')->toHtml(),
00150             'open'    => false,
00151         ));
00152 
00153         $accordion->addItem('links', array(
00154             'title'   => Mage::helper('adminhtml')->__('Links'),
00155             'content' => $this->getLayout()->createBlock('downloadable/adminhtml_catalog_product_edit_tab_downloadable_links')->toHtml(),
00156             'open'    => true,
00157         ));
00158 
00159         $this->setChild('accordion', $accordion);
00160 
00161         return parent::_toHtml();
00162     }

canShowTab (  ) 

Check if tab can be displayed

Returns:
boolean

Implements Mage_Adminhtml_Block_Widget_Tab_Interface.

Definition at line 122 of file Downloadable.php.

00123     {
00124         return true;
00125     }

getProduct (  ) 

Retrieve product

Returns:
Mage_Catalog_Model_Product

Definition at line 92 of file Downloadable.php.

00093     {
00094         return Mage::registry('current_product');
00095     }

getTabLabel (  ) 

Get tab label

Returns:
string

Implements Mage_Adminhtml_Block_Widget_Tab_Interface.

Definition at line 102 of file Downloadable.php.

00103     {
00104         return Mage::helper('downloadable')->__('Downloadable Information');
00105     }

getTabTitle (  ) 

Get tab title

Returns:
string

Implements Mage_Adminhtml_Block_Widget_Tab_Interface.

Definition at line 112 of file Downloadable.php.

00113     {
00114         return Mage::helper('downloadable')->__('Downloadable Information');
00115     }

isHidden (  ) 

Check if tab is hidden

Returns:
boolean

Implements Mage_Adminhtml_Block_Widget_Tab_Interface.

Definition at line 132 of file Downloadable.php.

00133     {
00134         return false;
00135     }

isReadonly (  ) 

Get tab URL

Returns:
string Get tab class

string Check is readonly block

boolean

Definition at line 82 of file Downloadable.php.

00083     {
00084         return $this->getProduct()->getDownloadableReadonly();
00085     }


Member Data Documentation

$_config = null [protected]

Definition at line 44 of file Downloadable.php.

$_product = null [protected]

Definition at line 42 of file Downloadable.php.


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

Generated on Sat Jul 4 17:24:07 2009 for Magento by  doxygen 1.5.8