diff options
Diffstat (limited to 'app/frontend/dto/CalendarGroupDTO.php')
-rw-r--r-- | app/frontend/dto/CalendarGroupDTO.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/frontend/dto/CalendarGroupDTO.php b/app/frontend/dto/CalendarGroupDTO.php index 7b64c6e..a607826 100644 --- a/app/frontend/dto/CalendarGroupDTO.php +++ b/app/frontend/dto/CalendarGroupDTO.php @@ -1,9 +1,10 @@ <?php +Prado::using('Application.dto.BaseDTO'); Prado::using('Application.model.Category'); Prado::using('Application.dto.CalendarDTO'); -class CalendarGroupDTO { +class CalendarGroupDTO extends BaseDTO { public $Name; public $ID; @@ -11,7 +12,10 @@ class CalendarGroupDTO { public $Calendars = []; public function loadRecord(Category $categoryRecord, array $calendars) { - $this->Name = $categoryRecord->Name; + $this->Name = self::getTranslation( + $categoryRecord->Name, + 'CalendarGroup.Name' + ); $this->ID = $categoryRecord->ID; $this->Priority = $categoryRecord->Priority; $this->Calendars = array_map( |