generateError(); } protected function generate() : void { $this->h1 = Util::ucFirst(Lang::guide('myGuides')); array_unshift($this->title, $this->h1); $this->redButtons = [BUTTON_GUIDE_NEW => User::canWriteGuide()]; $guides = new GuideList(array(['userId', User::$id])); $this->lvTabs = new Tabs(['parent' => "\$\$WH.ge('tabs-generic')"]); $this->lvTabs->addListviewTab(new Listview(array( 'data' => $guides->getListviewData(), 'name' => Util::ucFirst(Lang::game('guides')), 'hiddenCols' => ['patch', 'author'], 'visibleCols' => ['status'], 'extraCols' => ['$Listview.extraCols.date'] ), GuideList::$brickFile)); parent::generate(); } } ?>