diff options
author | emkael <emkael@tlen.pl> | 2016-05-06 15:35:54 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-05-06 15:35:54 +0200 |
commit | 5bfe174b5907440a4f08bd45fd9c384ab5c58037 (patch) | |
tree | 892497280128fa06b373b0c8a608e5624b26ec53 /app/php/controls/UserSelection.php | |
parent | 2e9216dcf303917764d4af622dcd212ec1491889 (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.php | 12 |
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'); |