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_Local_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
00035 {
00036 public function __construct()
00037 {
00038 parent::__construct();
00039 $this->setId('extensions_local_tabs');
00040 $this->setDestElementId('edit_form');
00041 $this->setTitle(Mage::helper('adminhtml')->__('Installed 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('contents', array(
00053 'label' => Mage::helper('adminhtml')->__('Contents'),
00054 'content' => $this->_getTabHtml('contents'),
00055 ));
00056
00057 $this->addTab('depends', array(
00058 'label' => Mage::helper('adminhtml')->__('Dependencies'),
00059 'content' => $this->_getTabHtml('depends'),
00060 ));
00061
00062 $this->addTab('changelog', array(
00063 'label' => Mage::helper('adminhtml')->__('Changelog'),
00064 'content' => $this->_getTabHtml('changelog'),
00065 ));
00066
00067 $this->addTab('actions', array(
00068 'label' => Mage::helper('adminhtml')->__('Actions'),
00069 'content' => $this->_getTabHtml('actions'),
00070 ));
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090 return parent::_beforeToHtml();
00091 }
00092
00093 protected function _getTabHtml($tab)
00094 {
00095 return $this->getLayout()
00096 ->createBlock('adminhtml/extensions_local_edit_tab_'.$tab)
00097 ->initForm()
00098 ->toHtml();
00099 }
00100 }