public function deleteVisits($visitIds)
    {
        $numDeletedVisits = 0;

        foreach ($this->logTablesProvider->getAllLogTables() as $logTable) {
            if ($logTable->getColumnToJoinOnIdVisit()) {
                $numVisits = $this->rawLogDao->deleteFromLogTable($logTable->getName(), $visitIds);
                if ($logTable->getName() === 'log_visit') {
                    $numDeletedVisits = $numVisits;
                }
            }
        }

        return $numDeletedVisits;
    }
public function deleteVisits($visitIds)
    {
        $numDeletedVisits = 0;

        foreach ($this->logTablesProvider->getAllLogTables() as $logTable) {
            if ($logTable->getColumnToJoinOnIdVisit()) {
                $numVisits = $this->rawLogDao->deleteFromLogTable($logTable->getName(), $visitIds);
                if ($logTable->getName() === 'log_visit') {
                    $numDeletedVisits = $numVisits;
                }
            }
        }

        return $numDeletedVisits;
    }
public function deleteVisits ( $ visitIds ) { $ numDeletedVisits = 0 ; foreach ( $ this -> logTablesProvider -> getAllLogTables ( ) as $ logTable ) { if ( $ logTable -> getColumnToJoinOnIdVisit ( ) ) { $ numVisits = $ this -> rawLogDao -> deleteFromLogTable ( $ logTable -> getName ( ) , $ visitIds ) ; if ( $ logTable -> getName ( ) === 'log_visit' ) { $ numDeletedVisits = $ numVisits ; } } } return $ numDeletedVisits ; }
Deletes visits by ID. This method cascades, so conversions, conversion items and visit actions for
the visits are also deleted.

@param int[] $visitIds
@return int The number of deleted visits.
Deletes visits by ID . This method cascades so conversions conversion items and visit actions for the visits are also deleted .