aboutsummaryrefslogtreecommitdiff
path: root/model/Upcoming.php
blob: d73757440d4c59e643ab75a67212e424bca00f5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

class Upcoming
{
	public function getNextEvents()
	{
		try {
			$events = file_get_contents('configs/upcoming.json');
			$events = json_decode($events, true);

			return array_values($events['voc_events']);
		}
		catch(ErrorException $e)
		{
			return array();
		}
	}
}