Mage_Adminhtml_Block_Tag_Product Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Tag_Product:

Mage_Adminhtml_Block_Widget_Grid_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 ()


Detailed Description

Definition at line 34 of file Product.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_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     }


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

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