protected function purge(array $idArchivesToDelete, Date $dateStart, $reason)
    {
        $deletedRowCount = 0;
        if (!empty($idArchivesToDelete)) {
            $deletedRowCount = $this->deleteArchiveIds($dateStart, $idArchivesToDelete);

            $this->logger->info(
                "Deleted {count} rows in archive tables (numeric + blob) for {reason} for {date}.",
                array(
                    'count' => $deletedRowCount,
                    'date' => $dateStart,
                    'reason' => $reason
                )
            );

            $this->logger->debug("[Deleted IDs: {deletedIds}]", array(
                'deletedIds' => implode(',', $idArchivesToDelete)
            ));
        } else {
            $this->logger->debug(
                "No archives for {reason} found in archive numeric table for {date}.",
                array('date' => $dateStart, 'reason' => $reason)
            );
        }

        return $deletedRowCount;
    }
protected function purge(array $idArchivesToDelete, Date $dateStart, $reason)
    {
        $deletedRowCount = 0;
        if (!empty($idArchivesToDelete)) {
            $deletedRowCount = $this->deleteArchiveIds($dateStart, $idArchivesToDelete);

            $this->logger->info(
                "Deleted {count} rows in archive tables (numeric + blob) for {reason} for {date}.",
                array(
                    'count' => $deletedRowCount,
                    'date' => $dateStart,
                    'reason' => $reason
                )
            );

            $this->logger->debug("[Deleted IDs: {deletedIds}]", array(
                'deletedIds' => implode(',', $idArchivesToDelete)
            ));
        } else {
            $this->logger->debug(
                "No archives for {reason} found in archive numeric table for {date}.",
                array('date' => $dateStart, 'reason' => $reason)
            );
        }

        return $deletedRowCount;
    }
protected function purge ( array $ idArchivesToDelete , Date $ dateStart , $ reason ) { $ deletedRowCount = 0 ; if ( ! empty ( $ idArchivesToDelete ) ) { $ deletedRowCount = $ this -> deleteArchiveIds ( $ dateStart , $ idArchivesToDelete ) ; $ this -> logger -> info ( "Deleted {count} rows in archive tables (numeric + blob) for {reason} for {date}." , array ( 'count' => $ deletedRowCount , 'date' => $ dateStart , 'reason' => $ reason ) ) ; $ this -> logger -> debug ( "[Deleted IDs: {deletedIds}]" , array ( 'deletedIds' => implode ( ',' , $ idArchivesToDelete ) ) ) ; } else { $ this -> logger -> debug ( "No archives for {reason} found in archive numeric table for {date}." , array ( 'date' => $ dateStart , 'reason' => $ reason ) ) ; } return $ deletedRowCount ; }
Purge all numeric and blob archives with the given IDs from the database.
@param array $idArchivesToDelete
@param Date $dateStart
@param string $reason
@return int
Purge all numeric and blob archives with the given IDs from the database .