Ejemplo n.º 1
0
 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());
 }
Ejemplo n.º 2
0
 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());
 }
Ejemplo n.º 3
0
 public function consultarProductesCistella(Usuari $depenDe)
 {
     return $this->catalegDAO->consultarProductesCistella($depenDe->getId());
 }
Ejemplo n.º 4
0
 public function consultarLlistaSupermercats(Usuari $depenDe)
 {
     return $this->supersDAO->consultarLlistaSupermercats($depenDe->getId());
 }