summaryrefslogtreecommitdiff
path: root/app/frontend/controls/EventRepeater.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/frontend/controls/EventRepeater.php')
-rw-r--r--app/frontend/controls/EventRepeater.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/frontend/controls/EventRepeater.php b/app/frontend/controls/EventRepeater.php
new file mode 100644
index 0000000..4fb2812
--- /dev/null
+++ b/app/frontend/controls/EventRepeater.php
@@ -0,0 +1,25 @@
+<?php
+
+Prado::using('Application.web.TemplateControl');
+
+class EventRepeater extends TemplateControl {
+
+ public function setEvents($events) {
+ $this->Events->DataSource = $events;
+ $this->Events->dataBind();
+ }
+
+ public function setCalendarLinkVisible($value) {
+ $this->setViewState(
+ 'CalendarLinkVisible',
+ TPropertyValue::ensureBoolean($value)
+ );
+ }
+
+ public function getCalendarLinkVisible() {
+ return $this->getViewState('CalendarLinkVisible', TRUE);
+ }
+
+}
+
+?>