00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 class Mage_Adminhtml_Block_Extensions_Remote_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
00035 {
00036 public function __construct()
00037 {
00038 parent::__construct();
00039 $this->setId('extensions_remote_tabs');
00040 $this->setDestElementId('edit_form');
00041 $this->setTitle(Mage::helper('adminhtml')->__('Remote Extension Info'));
00042 }
00043
00044 protected function _beforeToHtml()
00045 {
00046 $this->addTab('package', array(
00047 'label' => Mage::helper('adminhtml')->__('Package Info'),
00048 'content' => $this->_getTabHtml('package'),
00049 'active' => true,
00050 ));
00051
00052 $this->addTab('changelog', array(
00053 'label' => Mage::helper('adminhtml')->__('Changelog'),
00054 'content' => $this->_getTabHtml('changelog'),
00055 ));
00056
00057 $this->addTab('actions', array(
00058 'label' => Mage::helper('adminhtml')->__('Actions'),
00059 'content' => $this->_getTabHtml('actions'),
00060 ));
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080 return parent::_beforeToHtml();
00081 }
00082
00083 protected function _getTabHtml($tab)
00084 {
00085 return $this->getLayout()
00086 ->createBlock('adminhtml/extensions_remote_edit_tab_'.$tab)
00087 ->initForm()
00088 ->toHtml();
00089 }
00090 }