Ejemplo n.º 1
0
 /**
  * @param string $key
  * @param int $count
  * @return array
  */
 private function prepareData($key, $count)
 {
     list($from, $to) = explode('_', $key);
     if ($from == '*') {
         $from = $this->getFrom($to);
     }
     if ($to == '*') {
         $to = $this->getTo($to);
     }
     $label = $this->_renderRangeLabel(empty($from) ? 0 : $from * $this->getCurrencyRate(), empty($to) ? $to : $to * $this->getCurrencyRate());
     $value = $from . '-' . $to . $this->dataProvider->getAdditionalRequestData();
     $data = ['label' => $label, 'value' => $value, 'count' => $count, 'from' => $from, 'to' => $to];
     return $data;
 }