From 77ccd8ed8b64f4ec3c83e47e960591f4d17defa6 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 6 May 2016 12:47:21 +0200 Subject: * additinal information in calendar DTO --- app/php/dto/CalendarDTO.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/php') diff --git a/app/php/dto/CalendarDTO.php b/app/php/dto/CalendarDTO.php index 57636f3..c7f45e2 100644 --- a/app/php/dto/CalendarDTO.php +++ b/app/php/dto/CalendarDTO.php @@ -7,11 +7,17 @@ class CalendarDTO { public $ID; public $Name; public $Website; + public $Image; + public $Url; + public $LastUpdated; public function loadRecord(Calendar $calendarRecord) { $this->ID = $calendarRecord->UID; $this->Name = $calendarRecord->CustomName ?: $calendarRecord->Name; $this->Website = $calendarRecord->Website; + $this->Image = $calendarRecord->CustomImageUrl; + $this->Url = $calendarRecord->CustomUrl; + $this->LastUpdated = $calendarRecord->LastUpdated; } public static function __compare(CalendarDTO $cal1, CalendarDTO $cal2) { -- cgit v1.2.3