Public Member Functions | |
__construct () |
Definition at line 35 of file Customer.php.
__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_Grid_Container.
Definition at line 38 of file Customer.php.
00039 { 00040 parent::__construct(); 00041 00042 switch( $this->getRequest()->getParam('ret') ) { 00043 case 'all': 00044 $url = $this->getUrl('*/*/'); 00045 break; 00046 00047 case 'pending': 00048 $url = $this->getUrl('*/*/pending'); 00049 break; 00050 00051 default: 00052 $url = $this->getUrl('*/*/'); 00053 } 00054 00055 00056 $this->_block = 'tag_customer'; 00057 $this->_controller = 'tag_customer'; 00058 $this->_removeButton('add'); 00059 $this->setBackUrl($url); 00060 $this->_addBackButton(); 00061 00062 $tagInfo = Mage::getModel('tag/tag') 00063 ->load(Mage::registry('tagId')); 00064 00065 $this->_headerText = Mage::helper('tag')->__("Customers Tagged '%s'", $this->htmlEscape($tagInfo->getName())); 00066 }