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