Mage_Adminhtml_Block_System_Convert_Gui_Edit_Tabs Class Reference

Inheritance diagram for Mage_Adminhtml_Block_System_Convert_Gui_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 ()


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('convert_profile_tabs');
00040         $this->setDestElementId('edit_form');
00041         $this->setTitle(Mage::helper('adminhtml')->__('Import/Export Profile'));
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         $profile = Mage::registry('current_convert_profile');
00047 
00048         $wizardBlock = $this->getLayout()->createBlock('adminhtml/system_convert_gui_edit_tab_wizard');
00049         $wizardBlock->addData($profile->getData());
00050 
00051         $new = !$profile->getId();
00052 
00053         $this->addTab('wizard', array(
00054             'label'     => Mage::helper('adminhtml')->__('Profile Wizard'),
00055             'content'   => $wizardBlock->toHtml(),
00056             'active'    => true,
00057         ));
00058 
00059         if (!$new) {
00060             if ($profile->getDirection()!='export') {
00061                 $this->addTab('upload', array(
00062                     'label'     => Mage::helper('adminhtml')->__('Upload File'),
00063                     'content'   => $this->getLayout()->createBlock('adminhtml/system_convert_gui_edit_tab_upload')->toHtml(),
00064                 ));
00065             }
00066 
00067             $this->addTab('run', array(
00068                 'label'     => Mage::helper('adminhtml')->__('Run Profile'),
00069                 'content'   => $this->getLayout()->createBlock('adminhtml/system_convert_profile_edit_tab_run')->toHtml(),
00070             ));
00071 
00072             $this->addTab('view', array(
00073                 'label'     => Mage::helper('adminhtml')->__('Profile Actions XML'),
00074                 'content'   => $this->getLayout()->createBlock('adminhtml/system_convert_gui_edit_tab_view')->initForm()->toHtml(),
00075             ));
00076 
00077             $this->addTab('history', array(
00078                 'label'     => Mage::helper('adminhtml')->__('Profile History'),
00079                 'content'   => $this->getLayout()->createBlock('adminhtml/system_convert_profile_edit_tab_history')->toHtml(),
00080             ));
00081         }
00082 
00083         return parent::_beforeToHtml();
00084     }


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

Generated on Sat Jul 4 17:23:03 2009 for Magento by  doxygen 1.5.8