summaryrefslogtreecommitdiff
path: root/app/php/dto/CalendarDTO.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/php/dto/CalendarDTO.php')
-rw-r--r--app/php/dto/CalendarDTO.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/php/dto/CalendarDTO.php b/app/php/dto/CalendarDTO.php
new file mode 100644
index 0000000..302fcf4
--- /dev/null
+++ b/app/php/dto/CalendarDTO.php
@@ -0,0 +1,19 @@
+<?php
+
+Prado::using('Application.model.Calendar');
+
+class CalendarDTO {
+
+ public $ID;
+ public $Name;
+ public $Website;
+
+ public function loadRecord(Calendar $calendarRecord) {
+ $this->ID = $calendarRecord->UID;
+ $this->Name = $calendarRecord->Name;
+ $this->Website = $calendarRecord->Website;
+ }
+
+}
+
+?>