Public Member Functions | |
__construct () | |
isReadonly () | |
getProduct () | |
getTabLabel () | |
getTabTitle () | |
canShowTab () | |
isHidden () | |
Protected Member Functions | |
_toHtml () | |
Protected Attributes | |
$_product = null | |
$_config = null |
Definition at line 34 of file Downloadable.php.
__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 }
_toHtml | ( | ) | [protected] |
Render block HTML
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
Implements Mage_Adminhtml_Block_Widget_Tab_Interface.
Definition at line 122 of file Downloadable.php.
getProduct | ( | ) |
Retrieve product
Definition at line 92 of file Downloadable.php.
00093 { 00094 return Mage::registry('current_product'); 00095 }
getTabLabel | ( | ) |
Get tab label
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
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
Implements Mage_Adminhtml_Block_Widget_Tab_Interface.
Definition at line 132 of file Downloadable.php.
isReadonly | ( | ) |
Get tab URL
string Check is readonly block
boolean
Definition at line 82 of file Downloadable.php.
00083 { 00084 return $this->getProduct()->getDownloadableReadonly(); 00085 }
$_config = null [protected] |
Definition at line 44 of file Downloadable.php.
$_product = null [protected] |
Definition at line 42 of file Downloadable.php.