function ReportUserGroupAction(Usergroup $userGroup, Enums\Action $action)
    {
        $logItem = $this->CreateLogItem(Enums\ObjectType::UserGroup(), $action);       
        if (!$action->Equals(Enums\Action::Delete()))
        {
            $logUserGroup = new LogUsergroup();
            $logUserGroup->SetLogItem($logItem);
            $logUserGroup->SetUserGroup($userGroup);
            $logUserGroup->Save();
        }
    }
function ReportUserGroupAction(Usergroup $userGroup, Enums\Action $action)
    {
        $logItem = $this->CreateLogItem(Enums\ObjectType::UserGroup(), $action);       
        if (!$action->Equals(Enums\Action::Delete()))
        {
            $logUserGroup = new LogUsergroup();
            $logUserGroup->SetLogItem($logItem);
            $logUserGroup->SetUserGroup($userGroup);
            $logUserGroup->Save();
        }
    }
function ReportUserGroupAction ( Usergroup $ userGroup , Enums \ Action $ action ) { $ logItem = $ this -> CreateLogItem ( Enums \ ObjectType :: UserGroup ( ) , $ action ) ; if ( ! $ action -> Equals ( Enums \ Action :: Delete ( ) ) ) { $ logUserGroup = new LogUsergroup ( ) ; $ logUserGroup -> SetLogItem ( $ logItem ) ; $ logUserGroup -> SetUserGroup ( $ userGroup ) ; $ logUserGroup -> Save ( ) ; } }
Reports a user group action to the log
@param Usergroup  $userGroup  The user group being manipulated
@param Enums\Action $action The operation executed on the user group
Reports a user group action to the log