summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-05-06 12:47:21 +0200
committeremkael <emkael@tlen.pl>2016-05-06 12:47:21 +0200
commit77ccd8ed8b64f4ec3c83e47e960591f4d17defa6 (patch)
tree6db77efdf61d65230ad819310a647d230af1eabb /app
parent63c72a0bff307162859d09daf9380ca43cdb3b4c (diff)
* additinal information in calendar DTO
Diffstat (limited to 'app')
-rw-r--r--app/php/dto/CalendarDTO.php6
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) {