Update oebbApi_v0.3.php

Add __destruct()
This commit is contained in:
Fred 2014-06-23 17:02:11 +02:00
parent 3f7df3448c
commit 2634585d12

View file

@ -12,6 +12,10 @@ class oebbApi {
$_SESSION["oebbApi"]["getDetails"] = false;
}
public function __destruct() {
session_destroy();
}
public function get($departure, $arrival, $amount, $date = null, $time = null, $timeMode = false) {
$date = ($date == null ? date("d.m.Y") : $date);
$time = ($time == null ? date("H:i") : $time);