function LastContentModLog(Content $content, Interfaces\IContainerReferenceResolver $resolver = null)
    {
        $lastLog = self::LastContentLog($content);
        $container = $resolver ? $resolver->GetReferencedContainer($content) : null;
        if ($container)
        {
            $containerLog = self::LastContainerModLog($container);
            if (self::IsAfter($containerLog, $lastLog))
            {
                $lastLog = $containerLog;
            }
        }
        if ($content->GetTemplate())
        {
            $templateLog = self::LastTemplateLog($content->GetType(), $content->GetTemplate());
            if (self::IsAfter($templateLog, $lastLog))
            {
                $lastLog = $templateLog;
            }
        }
        return $lastLog;
    }
function LastContentModLog(Content $content, Interfaces\IContainerReferenceResolver $resolver = null)
    {
        $lastLog = self::LastContentLog($content);
        $container = $resolver ? $resolver->GetReferencedContainer($content) : null;
        if ($container)
        {
            $containerLog = self::LastContainerModLog($container);
            if (self::IsAfter($containerLog, $lastLog))
            {
                $lastLog = $containerLog;
            }
        }
        if ($content->GetTemplate())
        {
            $templateLog = self::LastTemplateLog($content->GetType(), $content->GetTemplate());
            if (self::IsAfter($templateLog, $lastLog))
            {
                $lastLog = $templateLog;
            }
        }
        return $lastLog;
    }
function LastContentModLog ( Content $ content , Interfaces \ IContainerReferenceResolver $ resolver = null ) { $ lastLog = self :: LastContentLog ( $ content ) ; $ container = $ resolver ? $ resolver -> GetReferencedContainer ( $ content ) : null ; if ( $ container ) { $ containerLog = self :: LastContainerModLog ( $ container ) ; if ( self :: IsAfter ( $ containerLog , $ lastLog ) ) { $ lastLog = $ containerLog ; } } if ( $ content -> GetTemplate ( ) ) { $ templateLog = self :: LastTemplateLog ( $ content -> GetType ( ) , $ content -> GetTemplate ( ) ) ; if ( self :: IsAfter ( $ templateLog , $ lastLog ) ) { $ lastLog = $ templateLog ; } } return $ lastLog ; }
Gets the last content modification log item
@param Content $content The content
@return LogItem Returns the last log item that changed anything related to the content
Gets the last content modification log item