private function SaveNewMemberGroups(array $selectedIDs, array $exIDs)
    {
        foreach ($selectedIDs as $selID)
        {
            if (!in_array($selID, $exIDs))
            {
                $pgGrp = new PageMembergroup();
                $pgGrp->SetPage($this->page);
                $pgGrp->SetMemberGroup(new Membergroup($selID));
                $pgGrp->Save();
            }
        }
        
    }
private function SaveNewMemberGroups(array $selectedIDs, array $exIDs)
    {
        foreach ($selectedIDs as $selID)
        {
            if (!in_array($selID, $exIDs))
            {
                $pgGrp = new PageMembergroup();
                $pgGrp->SetPage($this->page);
                $pgGrp->SetMemberGroup(new Membergroup($selID));
                $pgGrp->Save();
            }
        }
        
    }
private function SaveNewMemberGroups ( array $ selectedIDs , array $ exIDs ) { foreach ( $ selectedIDs as $ selID ) { if ( ! in_array ( $ selID , $ exIDs ) ) { $ pgGrp = new PageMembergroup ( ) ; $ pgGrp -> SetPage ( $ this -> page ) ; $ pgGrp -> SetMemberGroup ( new Membergroup ( $ selID ) ) ; $ pgGrp -> Save ( ) ; } } }
Saves page member groups not already assigned
@param array $selectedIDs The selected member group ids
@param array $exIDs The already assigned membergroup ids
Saves page member groups not already assigned