['filter' => FILTER_VALIDATE_INT] ); protected function generate() : void { // main container should be tagged:
if (!$this->assertGET('id')) $this->generateNotFound(Lang::game('guide'), Lang::guide('notFound')); $guide = new GuideList(array(['id', $this->_get['id']])); if ($guide->error) $this->generateNotFound(Lang::game('guide'), Lang::guide('notFound')); if (!$guide->canBeViewed() && !$guide->userCanView()) $this->forward('?guides='.$guide->getField('category')); $this->h1 = Lang::guide('clTitle', [$this->_get['id'], $guide->getField('title')]); if (!$this->h1) $this->h1 = $guide->getField('name'); $this->gPageInfo += ['name' => $guide->getField('name')]; $this->breadcrumb[] = $guide->getField('category'); parent::generate(); /* - NYI (see "&& false") $this->addScript([SC_JS_STRING, <<= parseInt(e.value)); }); }; radios.each(function (i, e) { e.onchange = limit.bind(this, e.name, parseInt(e.value)); if (i < 2 && e.name == "b") // first pair $(e).trigger("click"); else if (e.value == 0 && e.name == "a") // last pair $(e).trigger("click"); }); }); JS ]); */ $buff = '\n"; if (User::isInGroup(U_GROUP_STAFF) && false) $buff .= ''; $this->extraHTML = $buff; } } ?>