setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); use \pvv\side\Agenda; $agenda = new \pvv\side\Agenda([ new \pvv\side\social\NerdepitsaActivity, new \pvv\side\social\AnimekveldActivity, new \pvv\side\social\BrettspillActivity, new \pvv\side\DBActivity($pdo), ]); $year = (isset($_GET['year'])) ? $_GET['year'] : date("Y"); $month = (isset($_GET['month'])) ? $_GET['month'] : date("m"); $day = (isset($_GET['day'])) ? $_GET['day'] : -1; ?> Aktivitetverkstedet
Aktivitet­verk­stedet
getNextOfEach(new \DateTimeImmutable) : $agenda->getEventsBetween( new DateTimeImmutable("$year-$month-$day 00:00:00"), new DateTimeImmutable("$year-$month-$day 23:59:59")); $limit = 0; foreach($events as $event) { ?>

getImageURL()) { ?> getStart())) { ?> getRelativeDate() ?> getStart())) { ?> getName() ?>

getDescription(); ?> \n

") ?>

4) {$limit = 4;} else $limit = 2; ?>