Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SCHULER_VISENTINI_KBIDA_TARDIEU_BDD_Applications_S4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SCHULER Killian
SCHULER_VISENTINI_KBIDA_TARDIEU_BDD_Applications_S4
Commits
8bdf3814
Commit
8bdf3814
authored
Mar 04, 2020
by
Kbida Vincent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modifs et troisième méthode
parent
fb5bfef4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
tp1/src/controleur/ControleurRequete.php
tp1/src/controleur/ControleurRequete.php
+13
-2
No files found.
tp1/src/controleur/ControleurRequete.php
View file @
8bdf3814
...
...
@@ -8,7 +8,7 @@ use bdd\models\platform;
class
ControleurRequete
{
public
function
selectMario
(){
$jeu
=
\bdd\models\game
::
select
(
'name'
)
->
where
(
'name'
,
'
Mario'
);
$jeu
=
\bdd\models\game
::
select
(
'name'
)
->
where
(
'name'
,
'
like'
,
'%Mario%'
,
'or'
,
'alias'
,
'like'
,
'%Mario%'
)
->
get
(
);
/*
TODO
Il faut faire l'adaptation de la requête à la vue;
...
...
@@ -24,7 +24,7 @@ class ControleurRequete{
}
public
function
selectCompanyCountry
(){
$company
=
\bdd\models\company
::
select
(
'name'
)
->
where
(
'location_country'
,
'
Japan'
);
$company
=
\bdd\models\company
::
select
(
'name'
)
->
where
(
'location_country'
,
'
like'
,
'%Japan%'
)
->
get
(
);
/*TODO
pareil que la première méthoden besoin de la vue pour faire le rendu
$vue = new \bdd\vues\ ...
...
...
@@ -34,5 +34,16 @@ class ControleurRequete{
*/
}
public
function
selectPlatformBase
(){
$platform
=
\bdd\models\platform
::
select
(
'name'
)
->
where
(
'install_base'
,
'>'
,
'10000000'
)
->
get
();
/*TODO
encore une fois, besoin de vue pour rendu
$vue = new \bdd\vues\ ...
$html = $vue->render(3);
$rs->getBody()->write($html);
return $rs;
*/
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment