-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathScript.php
More file actions
34 lines (23 loc) · 730 Bytes
/
Copy pathScript.php
File metadata and controls
34 lines (23 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* Created by PhpStorm.
* User: Vlad
* Date: 09/09/2016
* Time: 12:54
*/
include_once 'Model/Contrat.php';
include_once 'Model/Position.php';
include_once 'Model/Station.php';
include_once 'API/ApiRequester.php';
include_once 'API/JCDecauxUrlBuilder.php';
include 'DAO/Service.php';
include 'DAO/DAO.php';
$a = new Api\ApiRequester();
$s = new \DAO\Service();
$dao = new \DAO\DAO();
$contrats = $s->peuplerContrats($a->requeteTousContrats());
$dao->insertAllContrats($contrats);
$stations = $s->peuplerStations($a->requeteComplementStations($a->requeteToutesStations('Lyon')));
//$stations = $s->peuplerStation($a->requeteStation(2010, 'Lyon'));
$dao->insertAllStations($stations);
//var_dump($stations);