canAccess($this->getCurrentUser())) throw new Exception("You do not have permission to access this object"); switch ($obj->type) { case "group": $this->action_group($mod, $obj->guid); break; } } function action_group($mod, $guid) { $mod->initGroup($guid); include "view/obj/group.view.php"; } } ?>