blob: 94fec2ce65dd7310ee186a9f5127dbbd510f9a23 (
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(array $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);
}
}
?>
|