diff --git a/src/pvv/side/event.php b/src/pvv/side/event.php index 08f365f..76eab76 100644 --- a/src/pvv/side/event.php +++ b/src/pvv/side/event.php @@ -17,4 +17,6 @@ abstract class Event { public abstract function getStop(); /* : DateTimeImmutable */ + public abstract function getURL(); /* : string */ + } diff --git a/src/pvv/side/social/animekveldevent.php b/src/pvv/side/social/animekveldevent.php index f9dd0ba..cabbb37 100644 --- a/src/pvv/side/social/animekveldevent.php +++ b/src/pvv/side/social/animekveldevent.php @@ -23,4 +23,8 @@ class AnimekveldEvent extends Event { return "Liang Zhu"; } + public function getURL() /* : string */ { + return '/anime/'; + } + } diff --git a/src/pvv/side/social/brettspillevent.php b/src/pvv/side/social/brettspillevent.php index a9bd58d..d9d49f3 100644 --- a/src/pvv/side/social/brettspillevent.php +++ b/src/pvv/side/social/brettspillevent.php @@ -23,4 +23,8 @@ class BrettspillEvent extends Event { return "PVV"; } + public function getURL() /* : string */ { + return '/brettspill/'; + } + } diff --git a/src/pvv/side/social/nerdepitsaevent.php b/src/pvv/side/social/nerdepitsaevent.php index 83b764c..9614de4 100644 --- a/src/pvv/side/social/nerdepitsaevent.php +++ b/src/pvv/side/social/nerdepitsaevent.php @@ -23,4 +23,8 @@ class NerdepitsaEvent extends Event { return "Anders Christensen"; } + public function getURL() /* : string */ { + return '/nerdepitsa/'; + } + } diff --git a/www/index.php b/www/index.php index 767f886..f70b0a8 100644 --- a/www/index.php +++ b/www/index.php @@ -1,8 +1,8 @@ setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $agenda = new \pvv\side\Agenda([ @@ -59,8 +59,8 @@ $agenda = new \pvv\side\Agenda([