getCategoryFromUrl($pageParam);; parent::__construct(); $this->name = Util::ucFirst(Lang::$game['pets']); } protected function generateContent() { $conditions = []; if ($this->category) $conditions[] = ['type', (int)$this->category[0]]; $pets = new PetList($conditions); if (!$pets->error) { $this->extendGlobalData($pets->getJSGlobals(GLOBALINFO_RELATED)); $params = ['visibleCols' => "$['abilities']"]; if (!$pets->hasDiffFields(['type'])) $params['hiddenCols'] = "$['type']"; $this->lvData[] = array( 'file' => 'pet', 'data' => $pets->getListviewData(), 'params' => $params ); }; } protected function generateTitle() { array_unshift($this->title, Util::ucFirst(Lang::$game['pets'])); if ($this->category) array_unshift($this->title, Lang::$pet['cat'][$this->category[0]]); } protected function generatePath() { if ($this->category) $this->path[] = $this->category[0]; } } ?>