Mage_Adminhtml_Block_Extensions_Custom_Edit_Tabs Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Extensions_Custom_Edit_Tabs:

Mage_Adminhtml_Block_Widget_Tabs Mage_Adminhtml_Block_Widget Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()

Protected Member Functions

 _beforeToHtml ()
 _getTabHtml ($tab)


Detailed Description

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

00037     {
00038         parent::__construct();
00039         $this->setId('extensions_custom_tabs');
00040         $this->setDestElementId('edit_form');
00041         $this->setTitle(Mage::helper('adminhtml')->__('Create Extension Package'));
00042     }


Member Function Documentation

_beforeToHtml (  )  [protected]

Before rendering html, but after trying to load cache

Returns:
Mage_Core_Block_Abstract

Reimplemented from Mage_Adminhtml_Block_Widget_Tabs.

Definition at line 44 of file Tabs.php.

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('release', array(
00053             'label'     => Mage::helper('adminhtml')->__('Release Info'),
00054             'content'   => $this->_getTabHtml('release'),
00055         ));
00056 
00057         $this->addTab('maintainers', array(
00058             'label'     => Mage::helper('adminhtml')->__('Maintainers'),
00059             'content'   => $this->_getTabHtml('maintainers'),
00060         ));
00061 
00062         $this->addTab('depends', array(
00063             'label'     => Mage::helper('adminhtml')->__('Dependencies'),
00064             'content'   => $this->_getTabHtml('depends'),
00065         ));
00066 
00067         $this->addTab('contents', array(
00068             'label'     => Mage::helper('adminhtml')->__('Contents'),
00069             'content'   => $this->_getTabHtml('contents'),
00070         ));
00071 
00072         $this->addTab('load', array(
00073             'label'     => Mage::helper('adminhtml')->__('Load local Package'),
00074             'class'     => 'ajax',
00075             'url'       => $this->getUrl('*/*/loadtab', array('_current' => true)),
00076         ));
00077 
00078         return parent::_beforeToHtml();
00079     }

_getTabHtml ( tab  )  [protected]

Definition at line 81 of file Tabs.php.

00082     {
00083         return $this->getLayout()
00084             ->createBlock('adminhtml/extensions_custom_edit_tab_'.$tab)
00085             ->initForm()
00086             ->toHtml();
00087     }


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

Generated on Sat Jul 4 17:22:50 2009 for Magento by  doxygen 1.5.8