iterate()) { $data[$this->id] = array( 'id' => $this->id, 'category' => $this->curTpl['category'], 'name' => $this->names[$this->id], 'icon' => $this->curTpl['iconString'] ); } return $data; } public function addGlobalsToJscript(&$refs) { if (!isset($refs['gCurrencies'])) $refs['gCurrencies'] = []; $data = []; while ($this->iterate()) { $refs['gCurrencies'][$this->id] = array( 'name' => $this->names[$this->id], 'icon' => $this->curTpl['iconString'] ); } return $data; } public function addRewardsToJScript(&$ref) { } public function renderTooltip() { } } ?>