function ReportSiteAction(Site $site, Enums\Action $action)
    {
        $logItem = $this->CreateLogItem(Enums\ObjectType::Site(), $action);       
        if (!$action->Equals(Enums\Action::Delete()))
        {
            $logSite = new LogSite();
            $logSite->SetLogItem($logItem);
            $logSite->SetSite($site);
            $logSite->Save();
        }
    }
function ReportSiteAction(Site $site, Enums\Action $action)
    {
        $logItem = $this->CreateLogItem(Enums\ObjectType::Site(), $action);       
        if (!$action->Equals(Enums\Action::Delete()))
        {
            $logSite = new LogSite();
            $logSite->SetLogItem($logItem);
            $logSite->SetSite($site);
            $logSite->Save();
        }
    }
function ReportSiteAction ( Site $ site , Enums \ Action $ action ) { $ logItem = $ this -> CreateLogItem ( Enums \ ObjectType :: Site ( ) , $ action ) ; if ( ! $ action -> Equals ( Enums \ Action :: Delete ( ) ) ) { $ logSite = new LogSite ( ) ; $ logSite -> SetLogItem ( $ logItem ) ; $ logSite -> SetSite ( $ site ) ; $ logSite -> Save ( ) ; } }
Reports a site action to the log
@param Site $site The site being manipulated
@param Enums\Action $action The operation executed on the site
Reports a site action to the log