You are here

public function FeedImportSQLHashes::protect in Feed Import 7.3

Protects a hash for updates

Parameters

integer $id: Hash id

Overrides FeedImportHashManager::protect

File

feed_import_base/inc/feed_import.inc, line 1917
This file contains Feed Import helpers.

Class

FeedImportSQLHashes
This class implements SQL hash storage

Code

public function protect($id) {
  $this->protectIds[] = $id;
  if (++$this->toProtect == $this->updateChunkSize) {
    $this
      ->_update($this->protectIds, static::MARK_PROTECTED);
    $this->toProtect = 0;
  }
}