/** * Récupérer un cvs avec les produits disponibles * * @param object $Seller * @return String $csv */ public function getProposition(&$Seller) { if (isset($this->SelectObject) and $this->SelectObject->getType() == 'category') { $Proposition = new Proposition($this->Seller, $this->Buyer, $this->Point, $this->SelectObject); } else { if (isset($this->SelectObject) and $this->SelectObject->getType() == 'promotion') { $Proposition = new Proposition($this->Seller, $this->Buyer, $this->Point, $this->SelectObject, $this->promo_step); } else { $Proposition = new Proposition($this->Seller, $this->Buyer, $this->Point); } } if ($Proposition->getEndPromo() == 1) { unset($this->SelectObject); $this->promo_step = 0; } return $Proposition->getObjectCsvLight(); }