Mage_Adminhtml_Block_System_Config_Form_Field_Import Class Reference

Inheritance diagram for Mage_Adminhtml_Block_System_Config_Form_Field_Import:

Varien_Data_Form_Element_Abstract Varien_Data_Form_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ($data)
 getElementHtml ()


Detailed Description

Definition at line 35 of file Import.php.


Constructor & Destructor Documentation

__construct ( data  ) 

Enter description here...

Parameters:
array $data

Reimplemented from Varien_Data_Form_Element_Abstract.

Definition at line 43 of file Import.php.

00044     {
00045         parent::__construct($data);
00046         $this->setType('file');
00047     }


Member Function Documentation

getElementHtml (  ) 

Enter description here...

Returns:
string

Reimplemented from Varien_Data_Form_Element_Abstract.

Definition at line 54 of file Import.php.

00055     {
00056         $html = '';
00057 
00058         $html .= '<input id="time_condition" type="hidden" name="'.$this->getName().'" value="'.time().'" />';
00059 
00060         $html .= <<<EndHTML
00061         <script type="text/javascript">
00062         Event.observe($('carriers_tablerate_condition_name'), 'change', checkConditionName.bind(this));
00063         function checkConditionName(event)
00064         {
00065             var conditionNameElement = Event.element(event);
00066             if (conditionNameElement && conditionNameElement.id) {
00067                 $('time_condition').value = '_' + conditionNameElement.value + '/' + Math.random();
00068             }
00069         }
00070         </script>
00071 EndHTML;
00072 
00073         $html .= parent::getElementHtml();
00074 
00075         return $html;
00076     }


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