mirror of
https://github.com/voc/streaming-website
synced 2024-11-15 00:47:14 +00:00
18 lines
277 B
PHP
18 lines
277 B
PHP
<?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();
|
|
}
|
|
}
|
|
}
|