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"; } } ?>