Public Member Functions | |
getHtml () | |
getValue ($index=null) | |
getCondition () |
Definition at line 34 of file Range.php.
getCondition | ( | ) |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Abstract.
Definition at line 56 of file Range.php.
00057 { 00058 $value = $this->getValue(); 00059 return $value; 00060 }
getHtml | ( | ) |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Abstract.
Definition at line 36 of file Range.php.
00037 { 00038 $html = '<div class="range"><div class="range-line"><span class="label">' . Mage::helper('adminhtml')->__('From').':</span> <input type="text" name="'.$this->_getHtmlName().'[from]" id="'.$this->_getHtmlId().'_from" value="'.$this->getEscapedValue('from').'" class="input-text no-changes"/></div>'; 00039 $html .= '<div class="range-line"><span class="label">' . Mage::helper('adminhtml')->__('To').' : </span><input type="text" name="'.$this->_getHtmlName().'[to]" id="'.$this->_getHtmlId().'_to" value="'.$this->getEscapedValue('to').'" class="input-text no-changes"/></div></div>'; 00040 return $html; 00041 }
getValue | ( | $ | index = null |
) |
Definition at line 43 of file Range.php.
00044 { 00045 if ($index) { 00046 return $this->getData('value', $index); 00047 } 00048 $value = $this->getData('value'); 00049 if ((isset($value['from']) && strlen($value['from']) > 0) || (isset($value['to']) && strlen($value['to']) > 0)) { 00050 return $value; 00051 } 00052 return null; 00053 }