Пример #1
0
 /**
  * @param $data
  * @param $id
  * @return bool
  */
 public function updateProduct($data, $id)
 {
     $productModel = new productModel();
     $productTagModel = new productTagModel();
     $this->updateProductProperties($data, $id);
     $this->updateTagProduct($data, $id, KACANA_PRODUCT_TAG_TYPE_SEARCH);
     $this->updateTagProduct($data, $id, KACANA_PRODUCT_TAG_TYPE_MENU);
     $this->trimImageDesc($data['description'], $id);
     return $productModel->updateItem($id, $data);
 }