コード例 #1
0
ファイル: Abstract.php プロジェクト: ascertain/NGshop
 /**
  * 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);
     }
 }
コード例 #2
0
 /**
  * @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')));
     }
 }