Algolia_Algoliasearch_Helper_Data::deleteProductsStoreIndices PHP Метод

deleteProductsStoreIndices() публичный Метод

public deleteProductsStoreIndices ( $storeId = null )
    public function deleteProductsStoreIndices($storeId = null)
    {
        if ($storeId !== null) {
            if ($this->config->isEnabledBackend($storeId) === false) {
                $this->logger->log('INDEXING IS DISABLED FOR ' . $this->logger->getStoreName($storeId));
                return;
            }
        }
        $this->algolia_helper->deleteIndex($this->product_helper->getIndexName($storeId));
    }

Usage Example

Пример #1
0
 public function deleteProductsStoreIndices(Varien_Object $event)
 {
     $storeId = $event->getStoreId();
     $this->helper->deleteProductsStoreIndices($storeId);
 }