Пример #1
0
 public function hookDeleteProduct($params)
 {
     $product = false;
     if (isset($params['product']) && Validate::isLoadedObject($params['product'])) {
         $product = $params['product'];
     } else {
         if (isset($params['id_product'])) {
             $product = new Product($params['id_product']);
         }
     }
     if (Validate::isLoadedObject($product)) {
         AdvancedSearchClass::desIndexCriterionsFromProduct($product->id);
         AdvancedSearchClass::optimizedSearchTables(false);
     }
 }