From 3cfbd9cdc5b3afdb63a5d775a86b14ecfdc5b6db Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 6 May 2016 12:52:06 +0200 Subject: * event list refactored to universal repeater control --- app/php/controls/EventRepeater.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 app/php/controls/EventRepeater.php (limited to 'app/php/controls/EventRepeater.php') diff --git a/app/php/controls/EventRepeater.php b/app/php/controls/EventRepeater.php new file mode 100644 index 0000000..4fb2812 --- /dev/null +++ b/app/php/controls/EventRepeater.php @@ -0,0 +1,25 @@ +Events->DataSource = $events; + $this->Events->dataBind(); + } + + public function setCalendarLinkVisible($value) { + $this->setViewState( + 'CalendarLinkVisible', + TPropertyValue::ensureBoolean($value) + ); + } + + public function getCalendarLinkVisible() { + return $this->getViewState('CalendarLinkVisible', TRUE); + } + +} + +?> -- cgit v1.2.3