@@ -3806,6 +3806,34 @@ public function historyPerMpsAverage()
3806
3806
' );
3807
3807
}
3808
3808
3809
+ public function debatsInfos (){
3810
+ echo "historyPerMpsAverage starting \n" ;
3811
+
3812
+ // 1. Create table if not exists
3813
+ $ this ->bdd ->query ("CREATE TABLE IF NOT EXISTS `debats_infos` (
3814
+ `uid` INT NOT NULL,
3815
+ `seanceRef` VARCHAR(75) NOT NULL,
3816
+ `sessionRef` VARCHAR(75) NOT NULL,
3817
+ `dateSeance` VARCHAR(75) NOT NULL,
3818
+ `numSeanceJour` INT NOT NULL,
3819
+ `legislature` INT NOT NULL,
3820
+ `dateMaj` DATE,
3821
+ PRIMARY KEY (`uid`)
3822
+ ) ENGINE = MyISAM; " );
3823
+
3824
+ // 2. Download data
3825
+ $ file = __DIR__ . '/comptes_rendus_XVII.xml.zip ' ;
3826
+ $ zip = new ZipArchive ();
3827
+
3828
+ if ($ zip ->open ($ file ) !== TRUE ) {
3829
+ exit ("cannot open < $ file> \n" );
3830
+ } else {
3831
+ echo "file opened " ;
3832
+ }
3833
+
3834
+
3835
+ }
3836
+
3809
3837
public function parrainages (){
3810
3838
// 1. Create table if not exists
3811
3839
$ this ->bdd ->query ("CREATE TABLE IF NOT EXISTS `parrainages` (
@@ -4071,7 +4099,7 @@ public function opendata_historyGroupes()
4071
4099
$ script = new Script ();
4072
4100
}
4073
4101
4074
-
4102
+ /*
4075
4103
$script->fillDeputes();
4076
4104
$script->addBsky();
4077
4105
$script->deputeAll();
@@ -4117,6 +4145,9 @@ public function opendata_historyGroupes()
4117
4145
$script->deputeAccordCleaned();
4118
4146
$script->historyMpsAverage();
4119
4147
$script->historyPerMpsAverage();
4148
+ */
4149
+ $ script ->debatsInfos ();
4150
+ /*
4120
4151
//$script->parrainages(); // No longer used
4121
4152
$ script ->opendata_activeMPs ();
4122
4153
$ script ->opendata_activeGroupes ();
0 commit comments