示例#1
0
 public function getRangeOnCollection($collection)
 {
     $min = 0;
     $stats = $collection->getStats($this->_getFilterField());
     $max = $stats[$this->_getFilterField()]['max'];
     if (!is_numeric($max)) {
         return parent::getRangeOnCollection($collection);
     } else {
         $max = $this->_ceil($max * $this->getCurrencyRate());
     }
     return compact('min', 'max');
 }