Algolia_Algoliasearch_Helper_Data::moveStoreSuggestionIndex PHP Метод

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

public moveStoreSuggestionIndex ( $storeId )
    public function moveStoreSuggestionIndex($storeId)
    {
        if ($this->config->isEnabledBackend($storeId) === false) {
            $this->logger->log('INDEXING IS DISABLED FOR ' . $this->logger->getStoreName($storeId));
            return;
        }
        $this->algolia_helper->moveIndex($this->suggestion_helper->getIndexName($storeId) . '_tmp', $this->suggestion_helper->getIndexName($storeId));
    }

Usage Example

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