Beispiel #1
0
 private function getViewLink(\model\ProductModel $product)
 {
     return $this->navView->getViewProductLink(self::$ProductPosition . '=' . $product->GetID(), "Visa " . $product->getName()) . ' ';
 }
 public function addItem(\model\ProductModel $product)
 {
     $stmt = $this->database->prepare("INSERT INTO productBasket (productName, productPrice) VALUE (?,?)");
     $stmt->execute(array($product->getName(), $product->getPrice()));
     $product->setId($this->database->lastInsertId());
 }