Mage_Adminhtml_Block_System_Convert_Gui_Edit Class Reference

Inheritance diagram for Mage_Adminhtml_Block_System_Convert_Gui_Edit:

Mage_Adminhtml_Block_Widget_Form_Container Mage_Adminhtml_Block_Widget_Container Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getProfileId ()
 getHeaderText ()


Detailed Description

Definition at line 34 of file Edit.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 Mage_Adminhtml_Block_Widget_Form_Container.

Definition at line 36 of file Edit.php.

00037     {
00038         $this->_objectId = 'id';
00039         $this->_controller = 'system_convert_gui';
00040 
00041         parent::__construct();
00042 
00043         $this->_updateButton('save', 'label', Mage::helper('adminhtml')->__('Save Profile'));
00044         $this->_updateButton('delete', 'label', Mage::helper('adminhtml')->__('Delete Profile'));
00045         $this->_addButton('savecontinue', array(
00046             'label' => Mage::helper('adminhtml')->__('Save and Continue Editing'),
00047             'onclick' => "$('edit_form').action += 'continue/true/'; editForm.submit();",
00048             'class' => 'save',
00049         ), -1);
00050 
00051     }


Member Function Documentation

getHeaderText (  ) 

Get header text

Returns:
string

Reimplemented from Mage_Adminhtml_Block_Widget_Container.

Definition at line 58 of file Edit.php.

00059     {
00060         if (Mage::registry('current_convert_profile')->getId()) {
00061             return $this->htmlEscape(Mage::registry('current_convert_profile')->getName());
00062         }
00063         else {
00064             return Mage::helper('adminhtml')->__('New Profile');
00065         }
00066     }

getProfileId (  ) 

Definition at line 53 of file Edit.php.

00054     {
00055         return Mage::registry('current_convert_profile')->getId();
00056     }


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