function ReportMemberGroupAction(Membergroup $memberGroup, Enums\Action $action)
    {
        $logItem = $this->CreateLogItem(Enums\ObjectType::MemberGroup(), $action);       
        if (!$action->Equals(Enums\Action::Delete()))
        {
            $logMemberGroup = new LogMembergroup();
            $logMemberGroup->SetLogItem($logItem);
            $logMemberGroup->SetMemberGroup($memberGroup);
            $logMemberGroup->Save();
        }
    }
function ReportMemberGroupAction(Membergroup $memberGroup, Enums\Action $action)
    {
        $logItem = $this->CreateLogItem(Enums\ObjectType::MemberGroup(), $action);       
        if (!$action->Equals(Enums\Action::Delete()))
        {
            $logMemberGroup = new LogMembergroup();
            $logMemberGroup->SetLogItem($logItem);
            $logMemberGroup->SetMemberGroup($memberGroup);
            $logMemberGroup->Save();
        }
    }
function ReportMemberGroupAction ( Membergroup $ memberGroup , Enums \ Action $ action ) { $ logItem = $ this -> CreateLogItem ( Enums \ ObjectType :: MemberGroup ( ) , $ action ) ; if ( ! $ action -> Equals ( Enums \ Action :: Delete ( ) ) ) { $ logMemberGroup = new LogMembergroup ( ) ; $ logMemberGroup -> SetLogItem ( $ logItem ) ; $ logMemberGroup -> SetMemberGroup ( $ memberGroup ) ; $ logMemberGroup -> Save ( ) ; } }
Reports a member group action to the log
@param Membergroup $memberGroup The member group being manipulated
@param Enums\Action $action The operation executed on the member group
Reports a member group action to the log