public static function add($request, $match)
    {
        $perm = Pluf_Shortcuts_GetObjectOr404('User_Role', $match['role_id']);
        $group = Pluf_Shortcuts_GetObjectOr404('User_Group', isset($match['group_id']) ? $match['group_id'] : $request->REQUEST['group_id']);
        $perm->setAssoc($group);
        return $group;
    }
public static function add($request, $match)
    {
        $perm = Pluf_Shortcuts_GetObjectOr404('User_Role', $match['role_id']);
        $group = Pluf_Shortcuts_GetObjectOr404('User_Group', isset($match['group_id']) ? $match['group_id'] : $request->REQUEST['group_id']);
        $perm->setAssoc($group);
        return $group;
    }
public static function add ( $ request , $ match ) { $ perm = Pluf_Shortcuts_GetObjectOr404 ( 'User_Role' , $ match [ 'role_id' ] ) ; $ group = Pluf_Shortcuts_GetObjectOr404 ( 'User_Group' , isset ( $ match [ 'group_id' ] ) ? $ match [ 'group_id' ] : $ request -> REQUEST [ 'group_id' ] ) ; $ perm -> setAssoc ( $ group ) ; return $ group ; }
Add new group to a role.
In other word, grant a role to a group.
Id of added group should be specified in request.

@param Pluf_HTTP_Request $request
@param array $match
Add new group to a role . In other word grant a role to a group . Id of added group should be specified in request .