summaryrefslogtreecommitdiff
path: root/app/php/web
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/web
parent2e9216dcf303917764d4af622dcd212ec1491889 (diff)
* common super-class for template controls using a facade
Diffstat (limited to 'app/php/web')
-rw-r--r--app/php/web/FacadeTemplateControl.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/php/web/FacadeTemplateControl.php b/app/php/web/FacadeTemplateControl.php
new file mode 100644
index 0000000..b713f49
--- /dev/null
+++ b/app/php/web/FacadeTemplateControl.php
@@ -0,0 +1,18 @@
+<?php
+
+Prado::using('Application.facades.Facade');
+Prado::using('Application.web.TemplateControl');
+
+class FacadeTemplateControl extends TemplateControl {
+
+ public function setFacade(Facade $facade) {
+ $this->setControlState('Facade', $facade);
+ }
+
+ public function getFacade() {
+ return $this->getControlState('Facade');
+ }
+
+}
+
+?>