static function LastPageModLog(Page $page, Interfaces\IContainerReferenceResolver $resolver)
    {
        $lastLog = self::LastPageLog($page);
        $pageContents = PageContent::Schema()->FetchByPage(false, $page);
        foreach ($pageContents as $pageContent)
        {
            $content = $pageContent->GetContent();
            $contentLog = self::LastContentModLog($content, $resolver);
            if (self::IsAfter($contentLog, $lastLog))
            {
                $lastLog = $contentLog;
            }
        }
        $layoutLog = self::LastLayoutLog($page->GetLayout());
        if (self::IsAfter($layoutLog, $lastLog))
        {
            $lastLog = $layoutLog;
        }
        return $lastLog;
    }
static function LastPageModLog(Page $page, Interfaces\IContainerReferenceResolver $resolver)
    {
        $lastLog = self::LastPageLog($page);
        $pageContents = PageContent::Schema()->FetchByPage(false, $page);
        foreach ($pageContents as $pageContent)
        {
            $content = $pageContent->GetContent();
            $contentLog = self::LastContentModLog($content, $resolver);
            if (self::IsAfter($contentLog, $lastLog))
            {
                $lastLog = $contentLog;
            }
        }
        $layoutLog = self::LastLayoutLog($page->GetLayout());
        if (self::IsAfter($layoutLog, $lastLog))
        {
            $lastLog = $layoutLog;
        }
        return $lastLog;
    }
static function LastPageModLog ( Page $ page , Interfaces \ IContainerReferenceResolver $ resolver ) { $ lastLog = self :: LastPageLog ( $ page ) ; $ pageContents = PageContent :: Schema ( ) -> FetchByPage ( false , $ page ) ; foreach ( $ pageContents as $ pageContent ) { $ content = $ pageContent -> GetContent ( ) ; $ contentLog = self :: LastContentModLog ( $ content , $ resolver ) ; if ( self :: IsAfter ( $ contentLog , $ lastLog ) ) { $ lastLog = $ contentLog ; } } $ layoutLog = self :: LastLayoutLog ( $ page -> GetLayout ( ) ) ; if ( self :: IsAfter ( $ layoutLog , $ lastLog ) ) { $ lastLog = $ layoutLog ; } return $ lastLog ; }
Gets the last page modification log item
@param Page $page The page
@param Interfaces\IContainerReferenceResolver $resolver
@return LogItem Returns the last log item that changed anything related to the page
Gets the last page modification log item