diff options
author | emkael <emkael@tlen.pl> | 2016-05-06 12:47:21 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-05-06 12:47:21 +0200 |
commit | 77ccd8ed8b64f4ec3c83e47e960591f4d17defa6 (patch) | |
tree | 6db77efdf61d65230ad819310a647d230af1eabb /app | |
parent | 63c72a0bff307162859d09daf9380ca43cdb3b4c (diff) |
* additinal information in calendar DTO
Diffstat (limited to 'app')
-rw-r--r-- | app/php/dto/CalendarDTO.php | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |