public static function get($request, $match)
    {
        $perm = Pluf_Shortcuts_GetObjectOr404('User_Role', $match['role_id']);
        $groupModel = new User_Group();
        $param = array(
            'view' => 'join_role',
            'filter' => array(
                'id=' . $match['group_id'],
                'role_id=' . $perm->id
            )
        );
        $groups = $groupModel->getList($param);
        if ($groups->count() == 0) {
            throw new Pluf_Exception_DoesNotExist('Group has not such role');
        }
        return $groups[0];
    }
public static function get($request, $match)
    {
        $perm = Pluf_Shortcuts_GetObjectOr404('User_Role', $match['role_id']);
        $groupModel = new User_Group();
        $param = array(
            'view' => 'join_role',
            'filter' => array(
                'id=' . $match['group_id'],
                'role_id=' . $perm->id
            )
        );
        $groups = $groupModel->getList($param);
        if ($groups->count() == 0) {
            throw new Pluf_Exception_DoesNotExist('Group has not such role');
        }
        return $groups[0];
    }
public static function get ( $ request , $ match ) { $ perm = Pluf_Shortcuts_GetObjectOr404 ( 'User_Role' , $ match [ 'role_id' ] ) ; $ groupModel = new User_Group ( ) ; $ param = array ( 'view' => 'join_role' , 'filter' => array ( 'id=' . $ match [ 'group_id' ] , 'role_id=' . $ perm -> id ) ) ; $ groups = $ groupModel -> getList ( $ param ) ; if ( $ groups -> count ( ) == 0 ) { throw new Pluf_Exception_DoesNotExist ( 'Group has not such role' ) ; } return $ groups [ 0 ] ; }
Returns information of a group of a role.

@param Pluf_HTTP_Request $request
@param array $match
Returns information of a group of a role .