Merged older paper pi with the newer, with some recent updates.

This commit is contained in:
kplaczek
2018-04-02 22:34:15 +02:00
parent 3c0ebd26ed
commit ad53e0c861
19 changed files with 1071 additions and 160 deletions

View File

@@ -13,6 +13,7 @@ class CinemaMultikino implements Cinema
{
$moviePath = 'https://multikino.pl/data/filmswithshowings/' . $cinemaId;
$movieContent = file_get_contents($moviePath);
print_r($movieContent);
$movieJson = json_decode($movieContent, 0);
return $movieJson;
}
@@ -21,6 +22,8 @@ class CinemaMultikino implements Cinema
{
$movieJson = $this->fetchRepertorire($day, $cinemaId);
echo $day;
// print_r($movieJson);
$filmy = [];
foreach ($movieJson->films as $movie) {
$film = [];
@@ -49,6 +52,9 @@ class CinemaMultikino implements Cinema
$filmy[] = $film;
}
}
// print_r($filmy);
die();
return $filmy;
}