From 0d53041fc67e13fc53cca0c993ec1a7a31a5a16e Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 15 Jan 2017 05:57:19 -0500 Subject: Reorganize examples/ directory --- examples/controller/obj.control.php | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 examples/controller/obj.control.php (limited to 'examples/controller/obj.control.php') diff --git a/examples/controller/obj.control.php b/examples/controller/obj.control.php new file mode 100644 index 0000000..2154d16 --- /dev/null +++ b/examples/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