public function __construct() { parent::__construct(); parent::setGetVar("id", ""); parent::setGetVar("fast", "false"); parent::processRequiredVars(["id"]); }
public function __construct() { parent::__construct(); parent::setGetVar('id', ''); parent::setGetVar('fast', 'false'); parent::setGetVar('alerts', 'false'); parent::processRequiredVars(['id']); }
function __construct() { parent::__construct(); parent::setGetVar("from", ""); parent::setGetVar("to", ""); parent::setGetVar("results", 6); parent::setGetVar("date", date("dmy")); parent::setGetVar("time", date("Hi")); parent::setGetVar("timeSel", "depart"); parent::setGetVar("typeOfTransport", "train"); parent::processRequiredVars(array("from", "to")); //reform date and time to wanted structure for hafas and railtime preg_match("/(..)(..)(..)/si", $this->date, $m); $this->date = "20" . $m[3] . $m[2] . $m[1]; preg_match("/(..)(..)/si", $this->time, $m); $this->time = $m[1] . ":" . $m[2]; }
function __construct() { parent::__construct(); parent::setGetVar("station", ""); parent::setGetVar("date", date("dmy")); parent::setGetVar("arrdep", "DEP"); parent::setGetVar("time", date("Hi")); preg_match("/(..)(..)(..)/si", $this->date, $m); $this->date = "20" . $m[3] . $m[2] . $m[1]; preg_match("/(..)(..)/si", $this->time, $m); $this->time = $m[1] . ":" . $m[2]; if ($this->station == "" && isset($_GET["id"])) { //then there was an id given $this->station = $_GET["id"]; } parent::processRequiredVars(array("station")); }
public function __construct() { parent::__construct(); parent::setGetVar('from', ''); parent::setGetVar('to', ''); parent::setGetVar('results', 6); parent::setGetVar('date', date('dmy')); parent::setGetVar('time', date('Hi')); parent::setGetVar('timeSel', 'depart'); parent::setGetVar('typeOfTransport', 'train'); parent::setGetVar('fast', 'false'); parent::setGetVar('alerts', 'false'); parent::processRequiredVars(['from', 'to']); // reform date and time to wanted structure for hafas and railtime preg_match('/(..)(..)(..)/si', $this->date, $m); $this->date = '20' . $m[3] . $m[2] . $m[1]; preg_match('/(..)(..)/si', $this->time, $m); $this->time = $m[1] . ':' . $m[2]; }
public function __construct() { parent::__construct(); parent::setGetVar("station", ""); parent::setGetVar("date", date("dmy")); parent::setGetVar("arrdep", "DEP"); parent::setGetVar("time", date("Hi")); parent::setGetVar("fast", "false"); preg_match("/(..)(..)(..)/si", $this->date, $m); if (sizeof($m) > 3) { $this->date = "20" . $m[3] . $m[2] . $m[1]; } elseif (sizeof($m) > 2) { $this->date = date("Y") . $m[2] . $m[1]; } preg_match("/(..)(..)/si", $this->time, $m); $this->time = $m[1] . ":" . $m[2]; if ($this->station == "" && isset($_GET["id"])) { //then there was an id given $this->station = $_GET["id"]; } parent::processRequiredVars(["station"]); }
public function __construct() { parent::__construct(); parent::setGetVar('station', ''); parent::setGetVar('date', date('dmy')); parent::setGetVar('arrdep', 'DEP'); parent::setGetVar('time', date('Hi')); parent::setGetVar('fast', 'false'); parent::setGetVar('alerts', 'false'); preg_match('/(..)(..)(..)/si', $this->date, $m); if (count($m) > 3) { $this->date = '20' . $m[3] . $m[2] . $m[1]; } elseif (count($m) > 2) { $this->date = date('Y') . $m[2] . $m[1]; } preg_match('/(..)(..)/si', $this->time, $m); $this->time = $m[1] . ':' . $m[2]; if ($this->station == '' && isset($_GET['id'])) { //then there was an id given $this->station = $_GET['id']; } parent::processRequiredVars(['station']); }
function __construct() { parent::__construct(); parent::setGetVar("id", ""); parent::processRequiredVars(array("id")); }