private function SaveNewGroups(array $exGroupIDs, array $selGroupIDs)
    {
        foreach ($selGroupIDs as $selGroupID)
        {
            if (!in_array($selGroupID, $exGroupIDs))
            {
                $mmg = new MemberMembergroup();
                $mmg->SetMember($this->member);
                $mmg->SetMemberGroup(new Membergroup($selGroupID));
                $mmg->Save();
            }
        }
    }
private function SaveNewGroups(array $exGroupIDs, array $selGroupIDs)
    {
        foreach ($selGroupIDs as $selGroupID)
        {
            if (!in_array($selGroupID, $exGroupIDs))
            {
                $mmg = new MemberMembergroup();
                $mmg->SetMember($this->member);
                $mmg->SetMemberGroup(new Membergroup($selGroupID));
                $mmg->Save();
            }
        }
    }
private function SaveNewGroups ( array $ exGroupIDs , array $ selGroupIDs ) { foreach ( $ selGroupIDs as $ selGroupID ) { if ( ! in_array ( $ selGroupID , $ exGroupIDs ) ) { $ mmg = new MemberMembergroup ( ) ; $ mmg -> SetMember ( $ this -> member ) ; $ mmg -> SetMemberGroup ( new Membergroup ( $ selGroupID ) ) ; $ mmg -> Save ( ) ; } } }
Saves the new groups
@param array $exGroupIDs
@param array $selGroupIDs
Saves the new groups