summaryrefslogtreecommitdiff
path: root/app/php/controls/UserSelection.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-05-06 15:35:54 +0200
committeremkael <emkael@tlen.pl>2016-05-06 15:35:54 +0200
commit5bfe174b5907440a4f08bd45fd9c384ab5c58037 (patch)
tree892497280128fa06b373b0c8a608e5624b26ec53 /app/php/controls/UserSelection.php
parent2e9216dcf303917764d4af622dcd212ec1491889 (diff)
* common super-class for template controls using a facade
Diffstat (limited to 'app/php/controls/UserSelection.php')
-rw-r--r--app/php/controls/UserSelection.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/app/php/controls/UserSelection.php b/app/php/controls/UserSelection.php
index 83c7bae..d215d7b 100644
--- a/app/php/controls/UserSelection.php
+++ b/app/php/controls/UserSelection.php
@@ -1,18 +1,10 @@
<?php
-Prado::using('Application.web.TemplateControl');
+Prado::using('Application.web.FacadeTemplateControl');
Prado::using('Application.facades.CalendarFacade');
-class UserSelection extends TemplateControl {
-
- public function setFacade(Facade $facade) {
- $this->setViewState('Facade', $facade);
- }
-
- public function getFacade() {
- return $this->getViewState('Facade');
- }
+class UserSelection extends FacadeTemplateControl {
public function getUserToDisplay() {
return $this->getControlState('user');