summaryrefslogtreecommitdiff
path: root/app/php/controls/CalendarSelection.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-05-09 10:39:25 +0200
committeremkael <emkael@tlen.pl>2016-05-09 12:38:03 +0200
commit6aa0798a84f164425def56d4bff3c8928895362b (patch)
tree51abe9f91a8db4b03d63d015a9416f5db089c659 /app/php/controls/CalendarSelection.php
parentad11c511f7d2516a3e2f04da4e5cd1eaf89e4d0b (diff)
* calendar selection page
Diffstat (limited to 'app/php/controls/CalendarSelection.php')
-rw-r--r--app/php/controls/CalendarSelection.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/php/controls/CalendarSelection.php b/app/php/controls/CalendarSelection.php
new file mode 100644
index 0000000..e53aa36
--- /dev/null
+++ b/app/php/controls/CalendarSelection.php
@@ -0,0 +1,17 @@
+<?php
+
+Prado::using('Application.controls.FacadeTemplateControl');
+
+class CalendarSelection extends FacadeTemplateControl {
+
+ public function onPreRender($param) {
+ parent::onPreRender($param);
+ if (!$this->Page->IsCallBack) {
+ $this->Calendars->DataSource = $this->Facade->getAll();
+ $this->Calendars->dataBind();
+ }
+ }
+
+}
+
+?>