Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 * $this->getCurrencyRate() . '-' . $to * $this->getCurrencyRate();// . $this->dataProvider->getAdditionalRequestData();
- $data = [
- 'label' => $label,
- 'value' => $value,
- 'count' => $count,
- 'from' => $from,
- 'to' => $to,
- ];
- return $data;
- }
Add Comment
Please, Sign In to add comment