currency: set($currency): Set the currency to be used in overall site. public function set($currency) { $this->code = $currency; if ((!isset($this->session->data['currency'])) || ($this->session->data['currency'] != $currency)) { $this->session->data['currency'] = $currency; } if ((!isset($this->request->cookie['currency'])) || ($this->request->cookie['currency'] != $currency)) { setcookie('currency', $currency, time() + 60 * 60 * 24 * 30, '/', $this->request->server['HTTP_HOST']); } } format($number, $currency = '', $value = '', $format = TRUE): public function format($number, $currency = '', $value = '', $format = TRUE) { if ($currency &&