Mage_Adminhtml_Block_Customer_Group_Edit Class Reference

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


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 37 of file Edit.php.

00038     {
00039         parent::__construct();
00040 
00041         $this->_objectId = 'id';
00042         $this->_controller = 'customer_group';
00043 
00044         $this->_updateButton('save', 'label', Mage::helper('customer')->__('Save Customer Group'));
00045         $this->_updateButton('delete', 'label', Mage::helper('customer')->__('Delete Customer Group'));
00046 
00047         if(!Mage::registry('current_group')->getId() || Mage::registry('current_group')->usesAsDefault()) {
00048             $this->_removeButton('delete');
00049         }
00050     }


Member Function Documentation

getHeaderCssClass (  ) 

Get header CSS class

Returns:
string

Reimplemented from Mage_Adminhtml_Block_Widget_Form_Container.

Definition at line 61 of file Edit.php.

00061                                         {
00062         return 'icon-head head-customer-groups';
00063     }

getHeaderText (  ) 

Get header text

Returns:
string

Reimplemented from Mage_Adminhtml_Block_Widget_Container.

Definition at line 52 of file Edit.php.

00053     {
00054         if(!is_null(Mage::registry('current_group')->getId())) {
00055             return Mage::helper('customer')->__('Edit Customer Group "%s"', $this->htmlEscape(Mage::registry('current_group')->getCustomerGroupCode()));
00056         } else {
00057             return Mage::helper('customer')->__('New Customer Group');
00058         }
00059     }


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

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