From 6dd131780490eb6ab13a4fccff134fe3c409d215 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Thu, 8 Feb 2018 00:43:49 -0500 Subject: Reorg examples/ directory --- examples/obj.control.php | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 examples/obj.control.php (limited to 'examples/obj.control.php') diff --git a/examples/obj.control.php b/examples/obj.control.php new file mode 100644 index 0000000..2154d16 --- /dev/null +++ b/examples/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