function ReportUserAction(User $user, Enums\Action $action)
    {
        $logItem = $this->CreateLogItem(Enums\ObjectType::User(), $action);       
        if (!$action->Equals(Enums\Action::Delete()))
        {
            $logUser = new LogUser();
            $logUser->SetLogItem($logItem);
            $logUser->SetUser($user);
            $logUser->Save();
        }
    }
function ReportUserAction(User $user, Enums\Action $action)
    {
        $logItem = $this->CreateLogItem(Enums\ObjectType::User(), $action);       
        if (!$action->Equals(Enums\Action::Delete()))
        {
            $logUser = new LogUser();
            $logUser->SetLogItem($logItem);
            $logUser->SetUser($user);
            $logUser->Save();
        }
    }
function ReportUserAction ( User $ user , Enums \ Action $ action ) { $ logItem = $ this -> CreateLogItem ( Enums \ ObjectType :: User ( ) , $ action ) ; if ( ! $ action -> Equals ( Enums \ Action :: Delete ( ) ) ) { $ logUser = new LogUser ( ) ; $ logUser -> SetLogItem ( $ logItem ) ; $ logUser -> SetUser ( $ user ) ; $ logUser -> Save ( ) ; } }
Reports a user action to the log
@param User $user The user being manipulated
@param Enums\Action $action The operation executed on the user
Reports a user action to the log