Ejemplo n.º 1
0
 function importRow($row)
 {
     $sku = $this->getFieldValue('sku', $row);
     $productId = $this->productId($sku);
     $product = new VF_Tire_Catalog_TireProduct(new VF_Product());
     $product->setId($productId);
     $tireSize = $this->tireSize($row);
     $product->setTireSize($tireSize);
     $product->setTireType($this->tireType($row));
     $this->log(sprintf('Assigned tire size [%s] to sku [%s]', $tireSize, $sku));
 }
Ejemplo n.º 2
0
 function newTireProduct($id = null, $tireSize = null, $tireType = null)
 {
     $tireProduct = new VF_Tire_Catalog_TireProduct($this->newVFProduct($id));
     if (!is_null($tireSize)) {
         $tireProduct->setTireSize($tireSize);
     }
     if (!is_null($tireType)) {
         $tireProduct->setTireType($tireType);
     }
     return $tireProduct;
 }
 function doSetTireSize(VF_Tire_Catalog_TireProduct $tireProduct)
 {
     $tireProduct->setTireSize($this->tireSize());
     $tireProduct->setTireType($this->tireType());
 }