Test version

This commit is contained in:
Jorit Tijsen committed 2024-03-05 17:22:55 +01:00
1 parent 8acacc0c68
commit 55aa88c0f6
128 files changed
+46700 -9645

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<?php
namespace Model;
class NewsImage extends Model {
public $id;
public $title;
public $author;
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;
}
}
}