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

public rebuildStoreSuggestionIndex ( $storeId )
Пример #1
0
 public function rebuildSuggestionIndex(Varien_Object $event)
 {
     $storeId = $event->getStoreId();
     $page = $event->getPage();
     $pageSize = $event->getPageSize();
     if (is_null($storeId) && !empty($categoryIds)) {
         foreach (Mage::app()->getStores() as $storeId => $store) {
             if (!$store->getIsActive()) {
                 continue;
             }
             $this->helper->rebuildStoreSuggestionIndex($storeId);
         }
     } else {
         if (!empty($page) && !empty($pageSize)) {
             $this->helper->rebuildStoreSuggestionIndexPage($storeId, $this->suggestion_helper->getSuggestionCollectionQuery($storeId), $page, $pageSize);
         } else {
             $this->helper->rebuildStoreSuggestionIndex($storeId);
         }
     }
     return $this;
 }