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/UrlBasedCalendarControl.php | |
parent | 2e9216dcf303917764d4af622dcd212ec1491889 (diff) |
* common super-class for template controls using a facade
Diffstat (limited to 'app/php/controls/UrlBasedCalendarControl.php')
-rw-r--r-- | app/php/controls/UrlBasedCalendarControl.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/app/php/controls/UrlBasedCalendarControl.php b/app/php/controls/UrlBasedCalendarControl.php index 89d05a1..1f737e8 100644 --- a/app/php/controls/UrlBasedCalendarControl.php +++ b/app/php/controls/UrlBasedCalendarControl.php @@ -1,17 +1,9 @@ <?php -Prado::using('Application.web.TemplateControl'); +Prado::using('Application.web.FacadeTemplateControl'); Prado::using('Application.facades.CalendarFacade'); -class UrlBasedCalendarControl extends TemplateControl { - - public function setFacade(Facade $facade) { - $this->setViewState('Facade', $facade); - } - - public function getFacade() { - return $this->getViewState('Facade'); - } +class UrlBasedCalendarControl extends FacadeTemplateControl { public function setCalendarUrl($url) { if ($url) { |