function _applyAccessPolicy($object, $action) { $access_policy = new AccessPolicy(); $access_policy->applyAccessTemplates($object, $action); if (catch_error('LimbException', $e)) { } MessageBox::writeNotice("Access template of " . get_class($object) . " for action '{$action}' not defined!!!"); }
protected function _applyAccessPolicy($object, $action) { try { $access_policy = new AccessPolicy(); $access_policy->applyAccessTemplates($object, $action); } catch (LimbException $e) { MessageBox::writeNotice("Access template of " . get_class($object) . " for action '{$action}' not defined!!!"); } }