Ejemplo n.º 1
0
 public function add(Etudiant $ET)
 {
     $q = $this->_bd->prepare('INSERT INTO Etudiant SET id = :id, Promotion = :Promotion, ' . 'Nom = :Nom, Prenom = :Prenom, Login = :Login, ' . 'Mdp = :Mdp, description = :description');
     $q->bindValue(':id', $ET->getId(), PDO::PARAM_INT);
     $q->bindValue(':Promotion', $ET->getPromotion());
     $q->bindValue(':Nom', $ET->getNom());
     $q->bindValue(':Prenom', $ET->getPrenom());
     $q->bindValue(':Login', $ET->getLogin());
     $q->bindValue(':Mdp', $ET->getMdp());
     $q->bindValue(':description', $ET->getDescription());
 }
Ejemplo n.º 2
0
echo "Section(s) : </br>";
$section = new Section(1, "2A-S3", 1, 1);
echo $section->getNo_section() . "</br>";
echo $section->getNom() . "</br>";
echo $section->getDate_debut() . "</br>";
echo $section->getDate_fin() . "</br>";
echo $section . "</br>";
echo "Sous-groupe(s) : </br>";
$Sous_groupe = new Sous_groupe(1, 1, 1);
echo $Sous_groupe->getNo_section() . "</br>";
echo $Sous_groupe->getNo_groupe() . "</br>";
echo $Sous_groupe->getNo_sous_groupe() . "</br>";
echo $Sous_groupe . "</br>";
echo "Etudiant(s) : </br>";
$etudiant = new Etudiant(1, "Bresson", "Guillaume", 1, 0, 5, 1, 1);
echo $etudiant->getNo_etudiant() . "</br>";
echo $etudiant->getNom() . "</br>";
echo $etudiant->getPrenom() . "</br>";
echo $etudiant->getBourse() . "</br>";
echo $etudiant->getAbandon() . "</br>";
echo $etudiant->getNo_section() . "</br>";
echo $etudiant->getNo_groupe() . "</br>";
echo $etudiant->getNo_sous_groupe() . "</br>";
echo $etudiant . "</br>";
echo "Absent(s) : </br>";
$absent = new Absent(1, 1, 3, "Cookies");
echo $absent->getNo_etudiant() . "</br>";
echo $absent->getNo_seance() . "</br>";
echo $absent->getAbsence() . "</br>";
echo $absent->getJustificatif() . "</br>";
echo $absent . "</br>";