blob: f1683e37c961e87fe53e654d4a1665bd6e8eaed1 [file] [log] [blame]
avm9996399bb77c2020-01-27 03:15:08 +01001<?php
2class views {
3 const VIEW_L9N_OLD = 0;
4 const VIEW_L9N_NEW = 1;
5 const VIEW_L9S = 2;
6
7 public static $views = [self::VIEW_L9N_OLD, self::VIEW_L9N_NEW, self::VIEW_L9S];
8 public static $viewsNames = [
9 self::VIEW_L9N_OLD => "VIEW_L9N_OLD",
10 self::VIEW_L9N_NEW => "VIEW_L9N_NEW",
11 self::VIEW_L9S => "VIEW_L9S"
12 ];
13 public static $viewsInclude = [
14 self::VIEW_L9N_OLD => "l9n.php",
15 self::VIEW_L9N_NEW => "l9n.php",
16 self::VIEW_L9S => "l9s.php"
17 ];
18
19 public static function renderPage($view) {
20 if (!in_array($view, self::$views)) return;
21
22 $gtfs = new gtfs();
23
24 require_once(__DIR__."/../views/".self::$viewsInclude[$view]);
25 }
26}