Mage_Adminhtml_Block_Catalog_Form_Renderer_Config_YearRange Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Catalog_Form_Renderer_Config_YearRange:

Mage_Adminhtml_Block_System_Config_Form_Field Mage_Adminhtml_Block_Abstract Varien_Data_Form_Element_Renderer_Interface Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Protected Member Functions

 _getElementHtml (Varien_Data_Form_Element_Abstract $element)


Detailed Description

Definition at line 34 of file YearRange.php.


Member Function Documentation

_getElementHtml ( Varien_Data_Form_Element_Abstract element  )  [protected]

Enter description here...

Parameters:
Varien_Data_Form_Element_Abstract $element
Returns:
string

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     }


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

Generated on Sat Jul 4 17:22:43 2009 for Magento by  doxygen 1.5.8