Fragment terugluisteren toegevoegd aan nieuws en agenda
This commit is contained in:
@@ -14,7 +14,7 @@ class CalendarEvent extends Model {
|
||||
public $keywords;
|
||||
public $url;
|
||||
|
||||
public function __construct($data, $images = null) {
|
||||
public function __construct($data, $images = null, $podcast = null) {
|
||||
parent::__construct($data);
|
||||
parent::ConvertToDateTime($this->starts);
|
||||
parent::ConvertToDateTime($this->ends);
|
||||
@@ -28,7 +28,12 @@ class CalendarEvent extends Model {
|
||||
}
|
||||
}
|
||||
|
||||
$this->podcast = isset($data->podcast) && $data->podcast ? $data->podcast : null;
|
||||
if($podcast)
|
||||
{
|
||||
$this->podcast = new \Model\Podcast($podcast);
|
||||
} else if(isset($data->podcast) && $data->podcast) {
|
||||
$this->podcast = new \Model\Podcast($data->podcast);
|
||||
}
|
||||
|
||||
$images = ($images != null) ? $images
|
||||
: (isset($data->images) ? $data->images : null);
|
||||
|
||||
Reference in New Issue
Block a user