Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Range Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Range:

Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Abstract Mage_Adminhtml_Block_Abstract Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Interface Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getHtml ()
 getValue ($index=null)
 getCondition ()


Detailed Description

Definition at line 34 of file Range.php.


Member Function Documentation

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     }


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

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