From 5bfe174b5907440a4f08bd45fd9c384ab5c58037 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 6 May 2016 15:35:54 +0200 Subject: * common super-class for template controls using a facade --- app/php/controls/UpcomingEvents.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'app/php/controls/UpcomingEvents.php') diff --git a/app/php/controls/UpcomingEvents.php b/app/php/controls/UpcomingEvents.php index 1ba5600..ac0271b 100644 --- a/app/php/controls/UpcomingEvents.php +++ b/app/php/controls/UpcomingEvents.php @@ -1,18 +1,10 @@ setViewState('Facade', $facade); - } - - public function getFacade() { - return $this->getViewState('Facade'); - } +class UpcomingEvents extends FacadeTemplateControl { public function getUserToDisplay() { return $this->getControlState('user'); -- cgit v1.2.3