コード例 #1
0
 /**
  * @name supprimerSuspensionAbonnement($pParam)
  * @desc Arrête la suspension d'abonnement
  */
 public function supprimerSuspensionAbonnement($pParam)
 {
     $lVr = ListeAbonneValid::validSupprimerSuspension($pParam);
     if ($lVr->getValid()) {
         $lCompteAbonnementVO = new CompteAbonnementVO();
         $lCompteAbonnementVO->setIdCompte($pParam['idCompte']);
         $lCompteAbonnementVO->setDateDebutSuspension(StringUtils::FORMAT_DATE_TIME_NULLE);
         $lCompteAbonnementVO->setDateFinSuspension(StringUtils::FORMAT_DATE_TIME_NULLE);
         $lAbonnementService = new AbonnementService();
         $lAbonnementService->suspendreAbonnement($lCompteAbonnementVO);
     }
     return $lVr;
 }
コード例 #2
0
 /**
  * @name remplirCompteAbonnement($pId, $pIdCompte, $pIdProduitAbonnement, $pIdLotAbonnement, $pQuantite, $pDateDebutSuspension, $pDateFinSuspension, $pEtat)
  * @param int(11)
  * @param int(11)
  * @param int(11)
  * @param int(11)
  * @param decimal(10,2)
  * @param datetime
  * @param datetime
  * @param tinyint(4)
  * @return CompteAbonnementVO
  * @desc Retourne une CompteAbonnementVO remplie
  */
 private static function remplirCompteAbonnement($pId, $pIdCompte, $pIdProduitAbonnement, $pIdLotAbonnement, $pQuantite, $pDateDebutSuspension, $pDateFinSuspension, $pEtat)
 {
     $lCompteAbonnement = new CompteAbonnementVO();
     $lCompteAbonnement->setId($pId);
     $lCompteAbonnement->setIdCompte($pIdCompte);
     $lCompteAbonnement->setIdProduitAbonnement($pIdProduitAbonnement);
     $lCompteAbonnement->setIdLotAbonnement($pIdLotAbonnement);
     $lCompteAbonnement->setQuantite($pQuantite);
     $lCompteAbonnement->setDateDebutSuspension($pDateDebutSuspension);
     $lCompteAbonnement->setDateFinSuspension($pDateFinSuspension);
     $lCompteAbonnement->setEtat($pEtat);
     return $lCompteAbonnement;
 }