<?php namespace bmtmgr; require_once dirname(__DIR__) . '/src/common.php'; $u = user\check_current(); $u->require_perm('admin'); utils\require_get_params(['id']); $tournament = Tournament::by_id($_GET['id']); $season = $tournament->get_season(); $disciplines = $tournament->get_disciplines(); $publications = $tournament->get_publications(); render('tournament', ['user' => $u, 'breadcrumbs' => [['name' => 'Ligen', 'path' => 'season/'], ['name' => $season->name, 'path' => 'season/' . $season->id . '/'], ['name' => $tournament->name, 'path' => 't/' . $tournament->id . '/']], 'season' => $season, 'tournament' => $tournament, 'disciplines' => $disciplines, 'publications' => $publications]);
public function get_tournament() { return Tournament::by_id($this->tournament_id); }