aboutsummaryrefslogtreecommitdiff
path: root/view/schedule-json.php
blob: 9aea603bb3b1102068007b940831cf877a64704e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

$schedule = new Schedule();
if(!$schedule->isEnabled())
	throw new NotFoundException('Schedule is disabled');

header('Content-Type: application/json');

if($conference->isClosed())
	echo '{}';

else
	echo json_encode($schedule->getSchedule(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);