public function guardar(Integer $id, string $nom, Usuari $depenDe) { $this->setNom($nom); if ($id->getInteger() != null) { $this->setId($id); } return $this->supermercatDAO->guardar($this, $depenDe->getId()); }
public function retornar(Usuari $depenDe) { $penultimaFrequencia = $this->getPenultimaFrequencia(); $this->setEnCistella(new Boolean(true)); $this->darreraCompra = $this->penultimaCompra; $this->setFrequencia($penultimaFrequencia); $copsComprat = $this->getCopsComprat()->getInteger(); $copsComprat--; $this->setCopsComprat(new Integer($copsComprat)); $this->producteDAO->guardar($this, $depenDe->getId()); }
public function consultarProductesCistella(Usuari $depenDe) { return $this->catalegDAO->consultarProductesCistella($depenDe->getId()); }
public function consultarLlistaSupermercats(Usuari $depenDe) { return $this->supersDAO->consultarLlistaSupermercats($depenDe->getId()); }