Skip to content
Snippets Groups Projects
Commit 2fe2bfbb authored by GARDEL Valentin's avatar GARDEL Valentin
Browse files

merge

parent d8355996
No related branches found
No related tags found
No related merge requests found
......@@ -13,20 +13,17 @@ $db->bootEloquent();
$db->connection()->enableQueryLog();
function show($log){
<<<<<<< HEAD
foreach($log as $l)
echo implode(",", $l);
=======
//echo implode(",", $l);
echo "Logs: </br>";
$length=count($log);
for($i=0; $i<$length; $i++){
$l= $log[$i];
echo "temps d'exec: ".$l["time"]."</br>Query: ".$l["query"]."</br>";
}
>>>>>>> 009e759b38e5103056185d74fe95bbabeefa3a02
}
/*print "----------------------PARTIE 1----------------------<br>";
print "----------------------PARTIE 1----------------------<br>";
//question 1
$time_start = microtime(true);
......@@ -56,7 +53,7 @@ $time_end = microtime(true);
$time = $time_end - $time_start;
echo "temps d execution de get rating of mario game(en seconde): ".$time."</br>";
*/print "----------------------PARTIE 2----------------------<br>";
print "----------------------PARTIE 2----------------------<br>";
print "Question 1 : Jeu dont le nom contient 'Mario'";
$question1 = new question\Q1();
......@@ -75,11 +72,11 @@ foreach($characterFirstMario as $cFM) {
print "Name : ".$cFM->name.'</br>';
}
/*print "Question 4 : Afficher le nom des personnages des jeux dont le nom (du jeu) contient 'Mario'<br>";
print "Question 4 : Afficher le nom des personnages des jeux dont le nom (du jeu) contient 'Mario'<br>";
$characterMario = \bddApp\model\Game::getCharacterMario();
foreach($characterMario as $cM) {
print "Name : ".$cM->name.'</br>';
}*/
}
print "Question 5 : Les jeux développés par une compagnie dont le nom contient 'Sony'<br>";
$companySony = \bddApp\model\Company::getCompany();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment