Mage_Adminhtml_Block_Sitemap_Edit Class Reference

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


Detailed Description

Definition at line 35 of file Edit.php.


Constructor & Destructor Documentation

__construct (  ) 

Init container

Reimplemented from Mage_Adminhtml_Block_Widget_Form_Container.

Definition at line 41 of file Edit.php.

00042     {
00043         $this->_objectId = 'sitemap_id';
00044         $this->_controller = 'sitemap';
00045 
00046         parent::__construct();
00047 
00048         $this->_addButton('generate', array(
00049             'label'   => Mage::helper('adminhtml')->__('Save & Generate'),
00050             'onclick' => "$('generate').value=1; editForm.submit();",
00051             'class'   => 'add',
00052         ));
00053     }


Member Function Documentation

getHeaderText (  ) 

Get edit form container header text

Returns:
string

Reimplemented from Mage_Adminhtml_Block_Widget_Container.

Definition at line 60 of file Edit.php.

00061     {
00062         if (Mage::registry('sitemap_sitemap')->getId()) {
00063             return Mage::helper('sitemap')->__('Edit Sitemap');
00064         }
00065         else {
00066             return Mage::helper('sitemap')->__('New Sitemap');
00067         }
00068     }


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

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