summaryrefslogtreecommitdiff
path: root/app/frontend/controls/EventRepeater.php
blob: 4fb2812db906dadb055e8f2758df277ec3f0190f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
    }

}

?>