function ReportPageAction(Page $page, Enums\Action $action)
    {
        $logItem = $this->CreateLogItem(Enums\ObjectType::Page(), $action);       
        if (!$action->Equals(Enums\Action::Delete()))
        {
            $logPage = new LogPage();
            $logPage->SetLogItem($logItem);
            $logPage->SetPage($page);
            $logPage->Save();
        }
        else
        {
            $this->ReportSiteAction($page->GetSite(), Enums\Action::ChildDelete());
        }
    }
function ReportPageAction(Page $page, Enums\Action $action)
    {
        $logItem = $this->CreateLogItem(Enums\ObjectType::Page(), $action);       
        if (!$action->Equals(Enums\Action::Delete()))
        {
            $logPage = new LogPage();
            $logPage->SetLogItem($logItem);
            $logPage->SetPage($page);
            $logPage->Save();
        }
        else
        {
            $this->ReportSiteAction($page->GetSite(), Enums\Action::ChildDelete());
        }
    }
function ReportPageAction ( Page $ page , Enums \ Action $ action ) { $ logItem = $ this -> CreateLogItem ( Enums \ ObjectType :: Page ( ) , $ action ) ; if ( ! $ action -> Equals ( Enums \ Action :: Delete ( ) ) ) { $ logPage = new LogPage ( ) ; $ logPage -> SetLogItem ( $ logItem ) ; $ logPage -> SetPage ( $ page ) ; $ logPage -> Save ( ) ; } else { $ this -> ReportSiteAction ( $ page -> GetSite ( ) , Enums \ Action :: ChildDelete ( ) ) ; } }
Reports a page action with dependencies to the log
@param Page $page The page being manipulated
@param Enums\Action $action The operation executed on the page
Reports a page action with dependencies to the log