Ejemplo n.º 1
0
 public static function generateFormation()
 {
     $dao = new dao();
     $dao->connexion();
     $listeEnt = $dao->getEntreprises();
     $tabConfig = $dao->getConfiguration();
     $dao->deconnexion();
     foreach ($listeEnt as $entr) {
         $formation = new formation($entr["IDEnt"], $entr["formationsRecherchees"], $entr["nbStands"], $entr["typeCreneau"], $tabConfig["nbCreneauxMatin"], $tabConfig["nbCreneauxAprem"]);
         $formation->createForm();
     }
 }
Ejemplo n.º 2
0
<?php

require 'modele/formation.php';
require_once 'modele/dao/daoAlgo.php';
$dao = new daoAlgo();
$dao->connexion();
$listeEnt = $dao->getEntreprises();
$dao->deconnexion();
$array = array();
foreach ($listeEnt as $entr) {
    $formation = new formation($entr["IDEnt"], $entr["formationsRecherchees"], $entr["nbPlaces"], $entr["typeCreneau"]);
    $array[] = $formation->createForm();
}
print_r($array);