Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
S4AI2_Game_WEBER_GARDEL_GREGOIRE_FRANTZEN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FRANTZEN Rejane
S4AI2_Game_WEBER_GARDEL_GREGOIRE_FRANTZEN
Commits
2fe2bfbb
Commit
2fe2bfbb
authored
5 years ago
by
GARDEL Valentin
Browse files
Options
Downloads
Patches
Plain Diff
merge
parent
d8355996
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
php/index.php
+5
-8
5 additions, 8 deletions
php/index.php
with
5 additions
and
8 deletions
php/index.php
+
5
−
8
View file @
2fe2bfbb
...
...
@@ -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>"
;
}
>>>>>>>
00
9
e759b38e5103056185d74fe95bbabeefa3a02
}
/*
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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment