Example #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());
 }
Example #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());
 }
Example #3
0
 public function consultarProductesCistella(Usuari $depenDe)
 {
     return $this->catalegDAO->consultarProductesCistella($depenDe->getId());
 }
Example #4
0
 public function consultarLlistaSupermercats(Usuari $depenDe)
 {
     return $this->supersDAO->consultarLlistaSupermercats($depenDe->getId());
 }