From ed99654d2e139a847a63e9295bf976d17462ee34 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 22 Oct 2016 00:29:30 -0400 Subject: Deprecate application code Setup to perform an iteration of development focused on a simpler implementation and eliminating redundancy in design. --- examples/app/controller/obj.control.php | 49 +++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 examples/app/controller/obj.control.php (limited to 'examples/app/controller/obj.control.php') diff --git a/examples/app/controller/obj.control.php b/examples/app/controller/obj.control.php new file mode 100644 index 0000000..2154d16 --- /dev/null +++ b/examples/app/controller/obj.control.php @@ -0,0 +1,49 @@ +obj->canAccess($this->getCurrentUser())) + throw new Exception("You do not have permission to access this object"); + + switch ($mod->obj->type) + { + case "group": + $this->action_group($mod); + break; + } + } + + function action_group($mod) + { + include "view/obj/group.view.php"; + } +} + +?> -- cgit v1.2.3