You are here

class FeedImportSQLHashesv2Compatible in Feed Import 8

This class implements SQL hash storage compatible with version 2.x

Hierarchy

Expanded class hierarchy of FeedImportSQLHashesv2Compatible

File

feed_import_base/src/FeedImportSQLHashesv2Compatible.php, line 7

Namespace

Drupal\feed_import_base
View source
class FeedImportSQLHashesv2Compatible extends FeedImportSQLHashes {

  // Used to generate hash.
  protected $hashPart;

  /**
   * {@inheritdoc}
   */
  public function hash(&$uniq) {
    return $this->generatedHashes[] = md5($uniq . $this->hashPart);
  }

  /**
   * {@inheritdoc}
   */
  public function setOptions(array $options, $overwrite = FALSE) {
    parent::setOptions($options, $overwrite);
    $this->hashPart = '/' . $this->group . '/' . $this->entity;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FeedImportConfigurable::$options protected property
FeedImportConfigurable::cleanLines public static function Helper function to get lines of a string
FeedImportHashManager::$generatedHashes protected property
FeedImportHashManager::$ttl protected property
FeedImportHashManager::MARK_PROTECTED constant
FeedImportSQLHashes::$entity protected property
FeedImportSQLHashes::$feedName protected property
FeedImportSQLHashes::$group protected property
FeedImportSQLHashes::$insert protected property
FeedImportSQLHashes::$insertChunkSize protected property
FeedImportSQLHashes::$insertFormat protected property
FeedImportSQLHashes::$protectIds protected property
FeedImportSQLHashes::$select protected property
FeedImportSQLHashes::$toInsert protected property
FeedImportSQLHashes::$toProtect protected property
FeedImportSQLHashes::$toUpdate protected property
FeedImportSQLHashes::$update protected property
FeedImportSQLHashes::$updateChunkSize protected property
FeedImportSQLHashes::$updateFormat protected property
FeedImportSQLHashes::$updateIds protected property
FeedImportSQLHashes::delete public static function Deletes hashes from database. Overrides FeedImportStaticHashManager::delete
FeedImportSQLHashes::deleteByFeed public static function Deletes all hashes for specified feed name Overrides FeedImportStaticHashManager::deleteByFeed
FeedImportSQLHashes::deleteByGroup public static function Deletes all hashes of specified group Overrides FeedImportStaticHashManager::deleteByGroup
FeedImportSQLHashes::deleteEntities public static function Deletes entities by type and id Overrides FeedImportStaticHashManager::deleteEntities
FeedImportSQLHashes::get public function Returns an array of entity keyed by hash, using generated hashes. Overrides FeedImportHashManager::get
FeedImportSQLHashes::getExpired public static function Returns an array of expired entity ids keyed by entity name Overrides FeedImportStaticHashManager::getExpired
FeedImportSQLHashes::insert public function Inserts a new hash. Overrides FeedImportHashManager::insert
FeedImportSQLHashes::insertCommit public function Commits the insert to storage. Overrides FeedImportHashManager::insertCommit
FeedImportSQLHashes::protect public function Protects a hash for updates Overrides FeedImportHashManager::protect
FeedImportSQLHashes::rescheduleAll public static function Reschedules all entities Overrides FeedImportStaticHashManager::rescheduleAll
FeedImportSQLHashes::totalHashes public static function Returns total number of hashes for desired feeds. Overrides FeedImportStaticHashManager::totalHashes
FeedImportSQLHashes::update public function Updates hashes. Overrides FeedImportHashManager::update
FeedImportSQLHashes::updateCommit public function Commits the update to storage. Overrides FeedImportHashManager::updateCommit
FeedImportSQLHashes::_update protected function Makes an update.
FeedImportSQLHashes::__construct public function Constructor. Overrides FeedImportHashManager::__construct
FeedImportSQLHashesv2Compatible::$hashPart protected property
FeedImportSQLHashesv2Compatible::hash public function Creates a hash, based on uniq Also adds it on generated hashes Overrides FeedImportSQLHashes::hash
FeedImportSQLHashesv2Compatible::setOptions public function Sets options for this instance Overrides FeedImportSQLHashes::setOptions