Protected Member Functions | |
_getElementHtml (Varien_Data_Form_Element_Abstract $element) |
Definition at line 34 of file YearRange.php.
_getElementHtml | ( | Varien_Data_Form_Element_Abstract $ | element | ) | [protected] |
Enter description here...
Varien_Data_Form_Element_Abstract | $element |
Reimplemented from Mage_Adminhtml_Block_System_Config_Form_Field.
Definition at line 37 of file YearRange.php.
00038 { 00039 $element->setStyle('width:70px;') 00040 ->setName($element->getName() . '[]'); 00041 00042 if ($element->getValue()) { 00043 $values = explode(',', $element->getValue()); 00044 } else { 00045 $values = array(); 00046 } 00047 00048 $from = $element->setValue(isset($values[0]) ? $values[0] : null)->getElementHtml(); 00049 $to = $element->setValue(isset($values[1]) ? $values[1] : null)->getElementHtml(); 00050 return Mage::helper('adminhtml')->__('from') . ' ' . $from 00051 . ' ' 00052 . Mage::helper('adminhtml')->__('to') . ' ' . $to; 00053 }