/** * @name remplirAdherent($pId, $pNumero, $pIdCompte, $pNom, $pPrenom, $pCourrielPrincipal, $pCourrielSecondaire, $pTelephonePrincipal, $pTelephoneSecondaire, $pAdresse, $pCodePostal, $pVille, $pDateNaissance, $pDateAdhesion, $pDateMaj, $pCommentaire) * @param integer * @param string * @param integer * @param string * @param string * @param string * @param string * @param string * @param string * @param string * @param string * @param string * @param date * @param date * @param date * @param string * @return AdherentSoldeVO * @desc Retourne un AdherentSoldeVO remplis */ private static function remplirAdherent($pId, $pNumero, $pIdCompte, $pNom, $pPrenom, $pCourrielPrincipal, $pCourrielSecondaire, $pTelephonePrincipal, $pTelephoneSecondaire, $pAdresse, $pCodePostal, $pVille, $pDateNaissance, $pDateAdhesion, $pDateMaj, $pCommentaire) { $lAdherent = new AdherentSoldeVO(); $lAdherent->setId($pId); $lAdherent->setNumero($pNumero); $lAdherent->setIdCompte($pIdCompte); $lAdherent->setNom($pNom); $lAdherent->setPrenom($pPrenom); $lAdherent->setCourrielPrincipal($pCourrielPrincipal); $lAdherent->setCourrielSecondaire($pCourrielSecondaire); $lAdherent->setTelephonePrincipal($pTelephonePrincipal); $lAdherent->setTelephoneSecondaire($pTelephoneSecondaire); $lAdherent->setAdresse($pAdresse); $lAdherent->setCodePostal($pCodePostal); $lAdherent->setVille($pVille); $lAdherent->setDateNaissance($pDateNaissance); $lAdherent->setDateAdhesion($pDateAdhesion); $lAdherent->setDateMaj($pDateMaj); $lAdherent->setCommentaire($pCommentaire); // Ajout des Opérations $lAdherent->setListeOperation(OperationManager::selectByIdCompte($lAdherent->getIdCompte())); // Ajout du montant du solde $lAdherent->setSolde(OperationManager::soldeAdherent($lAdherent->getId())); return $lAdherent; }