Exemple #1
0
 public function insertProduct($product)
 {
     $validation = $this->dataStandardized($product);
     $validation = $this->validationProduct($product);
     if (count($validation) > 0) {
         return $validation;
     }
     $productDa = new ProductDa();
     $result = $productDa->InsertProduct($product);
     return $result;
 }
Exemple #2
0
 public function InsertProduct()
 {
     $da = new ProductDa();
     $result = $da->InsertProduct($this->product);
     return result;
 }