Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BDAPPLI_LAURENT_VONDERSCHER_SASSU_PERCIN
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
VONDERSCHER William
BDAPPLI_LAURENT_VONDERSCHER_SASSU_PERCIN
Commits
eb184387
Commit
eb184387
authored
5 years ago
by
SASSU Thomas
Browse files
Options
Downloads
Patches
Plain Diff
Debute par mario >3 characters
parent
f21eb293
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
GamePedia/src/controleurs/ControleurScript.php
+9
-1
9 additions, 1 deletion
GamePedia/src/controleurs/ControleurScript.php
with
9 additions
and
1 deletion
GamePedia/src/controleurs/ControleurScript.php
+
9
−
1
View file @
eb184387
...
@@ -108,7 +108,7 @@ class ControleurScript
...
@@ -108,7 +108,7 @@ class ControleurScript
echo
"<p>nom :
$game->name
</p>"
;
echo
"<p>nom :
$game->name
</p>"
;
}
}
$q
=
Game
::
where
(
'name'
,
'like'
,
"
%
Mario%"
)
->
get
();
$q
=
Game
::
where
(
'name'
,
'like'
,
"Mario%"
)
->
get
();
echo
(
"<p>---------------------------------------------<br>"
.
echo
(
"<p>---------------------------------------------<br>"
.
"<p>le rating initial (indiquer le rating board) des jeux dont le nom contient Mario<br>"
.
"<p>le rating initial (indiquer le rating board) des jeux dont le nom contient Mario<br>"
.
"<p>---------------------------------------------<br>"
);
"<p>---------------------------------------------<br>"
);
...
@@ -118,6 +118,14 @@ class ControleurScript
...
@@ -118,6 +118,14 @@ class ControleurScript
foreach
(
$list
as
$rate
)
foreach
(
$list
as
$rate
)
echo
"<p>id rating_board :
$rate->rating_board_id
, name :
{
$rate
->
rating_board
()
->
first
()
->
name
}
</p>"
;
echo
"<p>id rating_board :
$rate->rating_board_id
, name :
{
$rate
->
rating_board
()
->
first
()
->
name
}
</p>"
;
}
}
echo
(
"<p>---------------------------------------------<br>"
.
"<p>les jeux dont le nom débute par Mario et ayant plus de 3 personnages<br>"
.
"<p>---------------------------------------------<br>"
);
foreach
(
$q
as
$game
)
{
$list
=
$game
->
characters
()
->
get
();
if
(
count
(
$list
)
>
3
)
echo
"<p>
$game->name
</p>"
;
}
}
}
private
function
nameDeckByGame
(
$id
){
private
function
nameDeckByGame
(
$id
){
...
...
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