Skip to content
Snippets Groups Projects
Commit 3932abf8 authored by VisentiniEmilien's avatar VisentiniEmilien
Browse files
parents e548a35c af772a92
Branches
No related tags found
No related merge requests found
*.idea/ *.idea/
*.project/ *.project/
*games_data.sql *games_data.sql
*games_schema.sql *games_schema.sql
*vendor/ *vendor/
*conf/ *conf/
\ No newline at end of file
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "3e70f60fac24a2aa60eedcd9ce200f65", "content-hash": "3e70f60fac24a2aa60eedcd9ce200f65",
"packages": [ "packages": [{
{
"name": "doctrine/inflector", "name": "doctrine/inflector",
"version": "1.3.1", "version": "1.3.1",
"source": { "source": {
...@@ -41,8 +40,7 @@ ...@@ -41,8 +40,7 @@
"license": [ "license": [
"MIT" "MIT"
], ],
"authors": [ "authors": [{
{
"name": "Guilherme Blanco", "name": "Guilherme Blanco",
"email": "guilhermeblanco@gmail.com" "email": "guilhermeblanco@gmail.com"
}, },
...@@ -107,12 +105,10 @@ ...@@ -107,12 +105,10 @@
"license": [ "license": [
"MIT" "MIT"
], ],
"authors": [ "authors": [{
{ "name": "Taylor Otwell",
"name": "Taylor Otwell", "email": "taylor@laravel.com"
"email": "taylor@laravel.com" }],
}
],
"description": "The Illuminate Container package.", "description": "The Illuminate Container package.",
"homepage": "https://laravel.com", "homepage": "https://laravel.com",
"time": "2018-01-19T17:58:33+00:00" "time": "2018-01-19T17:58:33+00:00"
...@@ -151,12 +147,10 @@ ...@@ -151,12 +147,10 @@
"license": [ "license": [
"MIT" "MIT"
], ],
"authors": [ "authors": [{
{ "name": "Taylor Otwell",
"name": "Taylor Otwell", "email": "taylor@laravel.com"
"email": "taylor@laravel.com" }],
}
],
"description": "The Illuminate Contracts package.", "description": "The Illuminate Contracts package.",
"homepage": "https://laravel.com", "homepage": "https://laravel.com",
"time": "2018-03-20T15:34:35+00:00" "time": "2018-03-20T15:34:35+00:00"
...@@ -204,12 +198,10 @@ ...@@ -204,12 +198,10 @@
"license": [ "license": [
"MIT" "MIT"
], ],
"authors": [ "authors": [{
{ "name": "Taylor Otwell",
"name": "Taylor Otwell", "email": "taylor@laravel.com"
"email": "taylor@laravel.com" }],
}
],
"description": "The Illuminate Database package.", "description": "The Illuminate Database package.",
"homepage": "https://laravel.com", "homepage": "https://laravel.com",
"keywords": [ "keywords": [
...@@ -267,12 +259,10 @@ ...@@ -267,12 +259,10 @@
"license": [ "license": [
"MIT" "MIT"
], ],
"authors": [ "authors": [{
{ "name": "Taylor Otwell",
"name": "Taylor Otwell", "email": "taylor@laravel.com"
"email": "taylor@laravel.com" }],
}
],
"description": "The Illuminate Support package.", "description": "The Illuminate Support package.",
"homepage": "https://laravel.com", "homepage": "https://laravel.com",
"time": "2018-08-10T19:40:01+00:00" "time": "2018-08-10T19:40:01+00:00"
...@@ -313,12 +303,10 @@ ...@@ -313,12 +303,10 @@
"license": [ "license": [
"MIT" "MIT"
], ],
"authors": [ "authors": [{
{ "name": "Kyle",
"name": "Kyle", "email": "kylekatarnls@gmail.com"
"email": "kylekatarnls@gmail.com" }],
}
],
"description": "Update helper", "description": "Update helper",
"time": "2019-07-29T11:03:54+00:00" "time": "2019-07-29T11:03:54+00:00"
}, },
...@@ -354,12 +342,10 @@ ...@@ -354,12 +342,10 @@
"license": [ "license": [
"MIT" "MIT"
], ],
"authors": [ "authors": [{
{ "name": "PHP Enum contributors",
"name": "PHP Enum contributors", "homepage": "https://github.com/myclabs/php-enum/graphs/contributors"
"homepage": "https://github.com/myclabs/php-enum/graphs/contributors" }],
}
],
"description": "PHP Enum implementation", "description": "PHP Enum implementation",
"homepage": "http://github.com/myclabs/php-enum", "homepage": "http://github.com/myclabs/php-enum",
"keywords": [ "keywords": [
...@@ -412,13 +398,11 @@ ...@@ -412,13 +398,11 @@
"license": [ "license": [
"MIT" "MIT"
], ],
"authors": [ "authors": [{
{ "name": "Brian Nesbitt",
"name": "Brian Nesbitt", "email": "brian@nesbot.com",
"email": "brian@nesbot.com", "homepage": "http://nesbot.com"
"homepage": "http://nesbot.com" }],
}
],
"description": "A simple API extension for DateTime.", "description": "A simple API extension for DateTime.",
"homepage": "http://carbon.nesbot.com", "homepage": "http://carbon.nesbot.com",
"keywords": [ "keywords": [
...@@ -460,12 +444,10 @@ ...@@ -460,12 +444,10 @@
"license": [ "license": [
"MIT" "MIT"
], ],
"authors": [ "authors": [{
{ "name": "PHP-FIG",
"name": "PHP-FIG", "homepage": "http://www.php-fig.org/"
"homepage": "http://www.php-fig.org/" }],
}
],
"description": "Common Container Interface (PHP FIG PSR-11)", "description": "Common Container Interface (PHP FIG PSR-11)",
"homepage": "https://github.com/php-fig/container", "homepage": "https://github.com/php-fig/container",
"keywords": [ "keywords": [
...@@ -509,12 +491,10 @@ ...@@ -509,12 +491,10 @@
"license": [ "license": [
"MIT" "MIT"
], ],
"authors": [ "authors": [{
{ "name": "PHP-FIG",
"name": "PHP-FIG", "homepage": "http://www.php-fig.org/"
"homepage": "http://www.php-fig.org/" }],
}
],
"description": "Common interfaces for simple caching", "description": "Common interfaces for simple caching",
"keywords": [ "keywords": [
"cache", "cache",
...@@ -556,13 +536,11 @@ ...@@ -556,13 +536,11 @@
"license": [ "license": [
"MIT" "MIT"
], ],
"authors": [ "authors": [{
{ "name": "Josh Lockhart",
"name": "Josh Lockhart", "email": "info@joshlockhart.com",
"email": "info@joshlockhart.com", "homepage": "http://www.joshlockhart.com/"
"homepage": "http://www.joshlockhart.com/" }],
}
],
"description": "Slim Framework, a PHP micro framework", "description": "Slim Framework, a PHP micro framework",
"homepage": "http://github.com/codeguy/Slim", "homepage": "http://github.com/codeguy/Slim",
"keywords": [ "keywords": [
...@@ -610,8 +588,7 @@ ...@@ -610,8 +588,7 @@
"license": [ "license": [
"MIT" "MIT"
], ],
"authors": [ "authors": [{
{
"name": "Nicolas Grekas", "name": "Nicolas Grekas",
"email": "p@tchwork.com" "email": "p@tchwork.com"
}, },
...@@ -693,8 +670,7 @@ ...@@ -693,8 +670,7 @@
"license": [ "license": [
"MIT" "MIT"
], ],
"authors": [ "authors": [{
{
"name": "Fabien Potencier", "name": "Fabien Potencier",
"email": "fabien@symfony.com" "email": "fabien@symfony.com"
}, },
...@@ -705,7 +681,7 @@ ...@@ -705,7 +681,7 @@
], ],
"description": "Symfony Translation Component", "description": "Symfony Translation Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-12-12T12:53:52+00:00" "time": "2020-02-04T09:32:40+00:00"
}, },
{ {
"name": "symfony/translation-contracts", "name": "symfony/translation-contracts",
...@@ -742,8 +718,7 @@ ...@@ -742,8 +718,7 @@
"license": [ "license": [
"MIT" "MIT"
], ],
"authors": [ "authors": [{
{
"name": "Nicolas Grekas", "name": "Nicolas Grekas",
"email": "p@tchwork.com" "email": "p@tchwork.com"
}, },
...@@ -775,4 +750,4 @@ ...@@ -775,4 +750,4 @@
"php": ">=7.0" "php": ">=7.0"
}, },
"platform-dev": [] "platform-dev": []
} }
\ No newline at end of file
<?php
namespace bdd\controleur;
use bdd\models\company;
use bdd\models\game;
use bdd\models\platform;
class ControleurRequete{
public function selectMario(){
$jeu = \bdd\models\game::select('name')->where('name','like','%Mario%','or','alias','like','%Mario%')->get();
$vue = new \bdd\vue\RequeteVue($jeu);
$html = $vue->render(1);
$rs->getBody()->write($html);
return $rs;
}
public function selectCompanyCountry(){
$company = \bdd\models\company::select('name')->where('location_country','like','%Japan%')->get();
$vue = new \bdd\vue\RequeteVue($company);
$html = $vue->render(1);
$rs->getBody()->write($html);
return $rs;
}
public function selectPlatformBase(){
$platform = \bdd\models\platform::select('name')->where('install_base','>','10000000')->get();
$vue = new \bdd\vue\RequeteVue($platform);
$html = $vue->render(1);
$rs->getBody()->write($html);
return $rs;
}
public function selectGameNumber(){
$game = \bdd\models\game::select('name')->orderBy('name')->limit('21173','422')->get();
$vue = new \bdd\vue\RequeteVue($game);
$html = $vue->render(1);
$rs->getBody()->write($html);
return $rs;
}
public function selectPage($p){
$p = ($p-1)*500;
$jeu = \bdd\models\game::select('id','name')->orderBy('id')->limit($p,'500')->get();
$vue = new \bdd\vue\RequeteVue($jeu);
$html = $vue->render(1);
$rs->getBody()->write($html);
return $rs;
}
}
\ No newline at end of file
<?php
namespace bdd\controleur;
use bdd\models\company;
use bdd\models\game;
use bdd\models\platform;
class ControleurRequete{
}
\ No newline at end of file
<?php
namespace src\vue;
class HomeVue
{
public function renderHome{
echo<<<END
<!DOCTYPE html>
<html lang=" "fr">
<head>
<meta charset="utf-8">
<title>HOME</title>
</head>
<body>
<a href="#" title="retour à la page d'accueil"><h1>Accueil</h1></a>
</body>
</html>
END;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment