iterate() as $__) { $data[$this->id] = array( 'id' => $this->id, 'category' => $this->curTpl['category'], 'territory' => $this->curTpl['faction'], 'minlevel' => $this->curTpl['levelMin'], 'maxlevel' => $this->curTpl['levelMax'], 'name' => $this->getField('name', true) ); if ($_ = $this->curTpl['expansion']) $data[$this->id]['expansion'] = $_; if ($_ = $this->curTpl['type']) $data[$this->id]['instance'] = $_; if ($_ = $this->curTpl['maxPlayer']) $data[$this->id]['nplayers'] = $_; if ($_ = $this->curTpl['levelReq']) $data[$this->id]['reqlevel'] = $_; if ($_ = $this->curTpl['levelReqLFG']) $data[$this->id]['lfgReqLevel'] = $_; if ($_ = $this->curTpl['levelHeroic']) $data[$this->id]['heroicLevel'] = $_; } return $data; } public function addGlobalsToJscript(&$template, $addMask = 0) { foreach ($this->iterate() as $__) $template->extendGlobalData(self::$type, [$this->id => ['name' => Util::jsEscape($this->getField('name', true))]]); } public function renderTooltip() { } } ?>