/** * @name produit($pProduit) * @return bool * @desc Test la validite de l'élément */ public function produit($pProduit) { if ($this->estProduit($pProduit)) { $lIdValid = new \IdValid(); $lId = $pProduit->getIdNomProduit(); return $lIdValid->estId($lId) && !empty($lId) && $lIdValid->estId($pProduit->getIdStock()) && $lIdValid->estId($pProduit->getIdDetailOperation()) && $lIdValid->estId($pProduit->getIdStockSolidaire()) && $this->montant($pProduit->getMontant()) && $this->quantite($pProduit->getQuantite()) && $this->quantite($pProduit->getQuantiteSolidaire()); } return false; }
/** * @name delete($pId) * @return bool * @desc Test la validite de l'élément */ public function delete($pId) { $lIdValid = new \IdValid(); if (!empty($pId)) { return $lIdValid->estId($pId); } return false; }
/** * @name idDetailCommande($pIdDetailCommande) * @return bool * @desc Test la validite de l'élément */ public function idDetailCommande($pIdDetailCommande) { $lIdValid = new IdValid(); if (!empty($pIdDetailCommande)) { return $lIdValid->estId($pIdDetailCommande); } else { return false; } }
/** * @name selectAll($pIdAchat) * @return bool * @desc Test la validite de l'élément */ public function selectAll($pIdAchat) { $lIdCompte = $pIdAchat->getIdCompte(); $lIdMarche = $pIdAchat->getIdCommande(); $lIdValid = new \IdValid(); return !empty($pIdAchat) && $lIdValid->estId($pIdAchat->getIdCompte()) && !empty($lIdCompte) && $lIdValid->estId($pIdAchat->getIdCommande()) && !empty($lIdMarche); }
/** * @name id($pId) * @return bool * @desc Test la validite de l'élément */ public function id($pId) { $lIdValid = new IdValid(); return $lIdValid->estId($pId) && (!empty($pId) || $pId == 0); }
/** * @name deleteStockQuantite($pId) * @return bool * @desc Test la validite de l'élément */ public function deleteStockQuantite($pId) { $lIdValid = new IdValid(); if ($pId != "") { return $lIdValid->estId($pId); } return false; }
/** * @name compte($pIdCompte) * @return bool * @desc Test la validite de l'élément */ public function compte($pIdCompte) { $lIdValid = new IdValid(); return !empty($pIdCompte) && $lIdValid->estId($pIdCompte); }
/** * @name deleteAbonnement($pId) * @return bool * @desc Test la validite de l'élément */ public function deleteAbonnement($pId) { $lIdValid = new IdValid(); if (!empty($pId)) { return $lIdValid->estId($pId); } else { return false; } }
/** * @name insert($pOperation) * @return bool * @desc Test la validite de l'élément */ public function insert($pOperation) { if ($this->estOperation($pOperation)) { $lIdValid = new IdValid(); $lId = $pOperation->getId(); return $lIdValid->estId($lId) && empty($lId) && $this->compte($pOperation->getIdCompte()) && $this->montant($pOperation->getMontant()) && $this->libelle($pOperation->getLibelle()) && $this->typePaiement($pOperation->getTypePaiement()) && $this->type($pOperation->getType()) && $this->champComplementaire($pOperation->getChampComplementaire(), 'insert'); } else { return false; } }
/** * @name insert($pDetailOperation) * @return bool * @desc Test la validite de l'élément */ public function insert($pDetailOperation) { if ($this->estDetailOperation($pDetailOperation)) { $lIdValid = new IdValid(); $lId = $pDetailOperation->getId(); return $lIdValid->estId($lId) && empty($lId) && $this->idOperation($pDetailOperation->getIdOperation()) && $this->compte($pDetailOperation->getIdCompte()) && $this->montant($pDetailOperation->getMontant()) && $this->libelle($pDetailOperation->getLibelle()) && $this->typePaiement($pDetailOperation->getTypePaiement()) && $this->idDetailCommande($pDetailOperation->getIdDetailCommande()); } else { return false; } }
/** * @name insert($pCompte) * @return bool * @desc Test la validite de l'élément */ public function insert($pCompte) { if ($this->estCompte($pCompte)) { $lIdValid = new IdValid(); $lId = $pCompte->getId(); return $lIdValid->estId($lId) && empty($lId); } else { return false; } }