Mage_Adminhtml_Block_System_Config_Form_Field_Export Class Reference

Inheritance diagram for Mage_Adminhtml_Block_System_Config_Form_Field_Export:

Varien_Data_Form_Element_Abstract Varien_Data_Form_Abstract Varien_Object

List of all members.

Public Member Functions

 getElementHtml ()


Detailed Description

Definition at line 34 of file Export.php.


Member Function Documentation

getElementHtml (  ) 

Reimplemented from Varien_Data_Form_Element_Abstract.

Definition at line 36 of file Export.php.

00037     {
00038         $buttonBlock = $this->getForm()->getParent()->getLayout()->createBlock('adminhtml/widget_button');
00039 
00040         $params = array(
00041             'website' => $buttonBlock->getRequest()->getParam('website')
00042         );
00043 
00044         $data = array(
00045             'label'     => Mage::helper('adminhtml')->__('Export CSV'),
00046             'onclick'   => 'setLocation(\''.Mage::helper('adminhtml')->getUrl("*/*/exportTablerates", $params) . 'conditionName/\' + $(\'carriers_tablerate_condition_name\').value + \'/tablerates.csv\' )',
00047             'class'     => '',
00048         );
00049 
00050         $html = $buttonBlock->setData($data)->toHtml();
00051 
00052         return $html;
00053     }


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

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