Guest User

Untitled

a guest
Oct 16th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. private function prepareData($key, $count)
  2. {
  3. list($from, $to) = explode('_', $key);
  4. if ($from == '*') {
  5. $from = $this->getFrom($to);
  6. }
  7. if ($to == '*') {
  8. $to = $this->getTo($to);
  9. }
  10. $label = $this->_renderRangeLabel(
  11. empty($from) ? 0 : $from * $this->getCurrencyRate(),
  12. empty($to) ? $to : $to * $this->getCurrencyRate()
  13. );
  14. $value = $from * $this->getCurrencyRate() . '-' . $to * $this->getCurrencyRate();// . $this->dataProvider->getAdditionalRequestData();
  15.  
  16. $data = [
  17. 'label' => $label,
  18. 'value' => $value,
  19. 'count' => $count,
  20. 'from' => $from,
  21. 'to' => $to,
  22. ];
  23.  
  24. return $data;
  25. }
Add Comment
Please, Sign In to add comment