diff options
Diffstat (limited to 'app/frontend/dto/CalendarDTO.php')
-rw-r--r-- | app/frontend/dto/CalendarDTO.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/frontend/dto/CalendarDTO.php b/app/frontend/dto/CalendarDTO.php index 4468941..18b3767 100644 --- a/app/frontend/dto/CalendarDTO.php +++ b/app/frontend/dto/CalendarDTO.php @@ -1,8 +1,9 @@ <?php +Prado::using('Application.dto.BaseDTO'); Prado::using('Application.model.Calendar'); -class CalendarDTO { +class CalendarDTO extends BaseDTO { public $ID; public $Name; @@ -14,7 +15,10 @@ class CalendarDTO { public function loadRecord(Calendar $calendarRecord) { $this->ID = $calendarRecord->UID; - $this->Name = $calendarRecord->CustomName ?: $calendarRecord->Name; + $this->Name = self::getTranslation( + $calendarRecord->CustomName ?: $calendarRecord->Name, + 'Calendar.Name' + ); $this->Website = $calendarRecord->Website; $this->Image = $calendarRecord->CustomImageUrl; $this->Url = $calendarRecord->CustomUrl; |