/** * cleans up all old zombie data * * @param OnlineShop_Framework_ProductInterfaces_IIndexable $object * @param array $subObjectIds */ protected function doCleanupOldZombieData(OnlineShop_Framework_ProductInterfaces_IIndexable $object, array $subObjectIds) { $cleanupIds = $this->tenantConfig->getSubIdsToCleanup($object, $subObjectIds); foreach ($cleanupIds as $idToCleanup) { $this->doDeleteFromIndex($idToCleanup); } }
/** * @param OnlineShop_Framework_IndexService_Tenant_IConfig $tenantConfig */ public function __construct(OnlineShop_Framework_IndexService_Tenant_IConfig $tenantConfig) { $this->tenantName = $tenantConfig->getTenantName(); $this->tenantConfig = $tenantConfig; // init logger $this->logger = new \Zend_Log(); if ($this->tenantConfig->getClientConfig('logging')) { $this->logger->addWriter(new Zend_Log_Writer_Stream($this->tenantConfig->getClientConfig('logOutput'))); } }