Agenda toegevoegd (/agenda/overzicht/{week,maand,alles} en /agenda/details/:id)

This commit is contained in:
mischa.spelt committed 2017-06-08 08:40:07 +02:00
1 parent 9fe4d895b3
commit 5ea381a009
10 files changed
+1138 -38

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
<?php
namespace Model;
class NewsImage extends Model {
public $id;
public $title;
public $url;
public function __construct($data, $urlPrefix = '/') {
parent::__construct($data);
// Deserialisatie van JSON heeft url in data,
// lezen uit database heeft file en (als het goed is) urlPrefix
if(isset($data->file)) {
$this->url = $urlPrefix . $data->file;
}
}
}