本文整理匯總了PHP中dao::getEntreprises方法的典型用法代碼示例。如果您正苦於以下問題:PHP dao::getEntreprises方法的具體用法?PHP dao::getEntreprises怎麽用?PHP dao::getEntreprises使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類dao
的用法示例。
在下文中一共展示了dao::getEntreprises方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: generateFormation
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();
}
}
示例2: array
$Etudiants = array();
$Choix = array();
$Entreprises = array();
$Creneaux = array();
$LiensEntrCren = array();
$Formations = array();
$listeEtu = $dao->getEtudiants("Informatique");
//On s'occupe de $Etudiants
$cmp = 0;
foreach ($listeEtu as $etu) {
$Etudiants[$cmp + 1] = $etu["IDEtu"];
$Choix[] = explode(",", $etu["listeChoixEtu"]);
$cmp++;
}
//On s'occupe de $Entreprises, $Creneaux et $LiensEntrCren
$listeEnt = $dao->getEntreprises();
foreach ($listeEnt as $ent) {
$Entreprises[] = $ent["IDEnt"];
}
$listeFormation = $dao->getFormations("Informatique");
/*for ($i = 0; $i < sizeof($Entreprises); $i++) {
$LiensEntrCren[$i][0] = 0;
}*/
foreach ($Entreprises as $IDent) {
$LiensEntrCren[$IDent][0] = 0;
}
$cmp = 0;
foreach ($listeFormation as $form) {
$Formations[] = $form["IDformation"];
$LiensEntrCren[$form["entPropose"]][0]++;
$LiensEntrCren[$form["entPropose"]][$LiensEntrCren[$form["entPropose"]][0]] = $cmp;