private function SaveGroups()
    {
        $assignedIDs = $this->AssignedGroupIDs();
        $selectedIDs = Request::PostArray('Group');
        $this->ClearMembergroups($selectedIDs);
        foreach ($selectedIDs as $selectedID)
        {
            if (!in_array($selectedID, $assignedIDs))
            {
                $confirmGroup = new RegisterConfirmMembergroup();
                $confirmGroup->SetConfirm($this->confirm);
                $confirmGroup->SetMemberGroup(Membergroup::Schema()->ByID($selectedID));
                $confirmGroup->Save();
            }
        }
    }
private function SaveGroups()
    {
        $assignedIDs = $this->AssignedGroupIDs();
        $selectedIDs = Request::PostArray('Group');
        $this->ClearMembergroups($selectedIDs);
        foreach ($selectedIDs as $selectedID)
        {
            if (!in_array($selectedID, $assignedIDs))
            {
                $confirmGroup = new RegisterConfirmMembergroup();
                $confirmGroup->SetConfirm($this->confirm);
                $confirmGroup->SetMemberGroup(Membergroup::Schema()->ByID($selectedID));
                $confirmGroup->Save();
            }
        }
    }
private function SaveGroups ( ) { $ assignedIDs = $ this -> AssignedGroupIDs ( ) ; $ selectedIDs = Request :: PostArray ( 'Group' ) ; $ this -> ClearMembergroups ( $ selectedIDs ) ; foreach ( $ selectedIDs as $ selectedID ) { if ( ! in_array ( $ selectedID , $ assignedIDs ) ) { $ confirmGroup = new RegisterConfirmMembergroup ( ) ; $ confirmGroup -> SetConfirm ( $ this -> confirm ) ; $ confirmGroup -> SetMemberGroup ( Membergroup :: Schema ( ) -> ByID ( $ selectedID ) ) ; $ confirmGroup -> Save ( ) ; } } }
Saves the groups
Saves the groups