currency; } /** * @return array */ public function getCurrencyInfo() { return $this->currencyInfo; } /** * @param int $currency */ public function setCurrency($currency) { $this->currency = $currency; } /** * @param array $currencyInfo */ public function setCurrencyInfo($currencyInfo) { $this->currencyInfo = $currencyInfo; } public function load() { $currentUser = Users_Record_Model::getCurrentUserModel(); $data = []; if ($currentUser) { $data['currencyDecimals'] = $currentUser->get('no_of_currency_decimals'); $data['currency_symbol'] = html_entity_decode($currentUser->get('currency_symbol')); $data['decimalSeparator'] = html_entity_decode($currentUser->get('currency_decimal_separator')); $data['groupSeparator'] = html_entity_decode($currentUser->get('currency_grouping_separator')); } $this->setCurrency($currentUser->get('currency_id')); $this->setCurrencyInfo($data); } }