Merged older paper pi with the newer, with some recent updates.
This commit is contained in:
@@ -2,18 +2,19 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Paper\CinemaMultikino;
|
||||
use DiDom\Document;
|
||||
use App\Paper;
|
||||
use App\Paper\Paper;
|
||||
|
||||
class Repertoire extends Controller
|
||||
{
|
||||
|
||||
private $main;
|
||||
private $icon = '/small/film.png';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->main = new Main();
|
||||
$this->main = new Paper();
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +22,7 @@ class Repertoire extends Controller
|
||||
{
|
||||
$date = date('d/m/Y');
|
||||
$repertuarText = $this->cinemacityRepertuar($date);
|
||||
$this->main->sendPrint('', $repertuarText);
|
||||
$this->main->sendPrint('', $repertuarText, $this->icon, $this->icon);
|
||||
return back();
|
||||
}
|
||||
|
||||
@@ -31,7 +32,7 @@ class Repertoire extends Controller
|
||||
$date = new \DateTime();
|
||||
$date->modify('+1 day');
|
||||
$repertuarText = $this->cinemacityRepertuar($date->format('d/m/Y'));
|
||||
$this->main->sendPrint('', $repertuarText);
|
||||
$this->main->sendPrint('', $repertuarText, $this->icon, $this->icon);
|
||||
return back();
|
||||
}
|
||||
|
||||
@@ -81,9 +82,10 @@ class Repertoire extends Controller
|
||||
|
||||
public function today_multikino()
|
||||
{
|
||||
$multikino = new Paper\CinemaMultikino();
|
||||
$multikino = new CinemaMultikino();
|
||||
|
||||
$repertuarText = $multikino->convertToPrint(date('Y-m-d'), 4);
|
||||
$this->main->sendPrint('', $repertuarText);
|
||||
$this->main->sendPrint('', $repertuarText, $this->icon);
|
||||
return back();
|
||||
}
|
||||
|
||||
@@ -92,13 +94,12 @@ class Repertoire extends Controller
|
||||
$date = new \DateTime();
|
||||
$date->modify('+1 day');
|
||||
|
||||
$multikino = new Paper\CinemaMultikino();
|
||||
$multikino = new CinemaMultikino();
|
||||
$repertuarText = $multikino->convertToPrint($date->format('Y-m-d'), 4);
|
||||
$this->main->sendPrint('', $repertuarText);
|
||||
$this->main->sendPrint('', $repertuarText, $this->icon);
|
||||
return back();
|
||||
|
||||
|
||||
|
||||
// $repertuarText = $this->multikinoRepertuar($date->format('Y-m-d'));
|
||||
// $this->main->sendPrint('', $repertuarText);
|
||||
// return back();
|
||||
@@ -111,7 +112,7 @@ class Repertoire extends Controller
|
||||
$date->modify('+1 day');
|
||||
|
||||
$repertuarText = $this->gdynskieCentrumFilmowe($date->format('d_m_Y'));
|
||||
$this->main->sendPrint('', $repertuarText);
|
||||
$this->main->sendPrint('', $repertuarText, $this->icon);
|
||||
return back();
|
||||
}
|
||||
|
||||
@@ -119,20 +120,20 @@ class Repertoire extends Controller
|
||||
{
|
||||
$date = date('d_m_Y');
|
||||
$repertuarText = $this->gdynskieCentrumFilmowe($date);
|
||||
$this->main->sendPrint('', $repertuarText);
|
||||
$this->main->sendPrint('', $repertuarText, $this->icon);
|
||||
return back();
|
||||
}
|
||||
|
||||
public function today_helios()
|
||||
{
|
||||
$this->main->sendPrint('', $this->helios(0, 2));
|
||||
$this->main->sendPrint('', $this->helios(0, 2), $this->icon);
|
||||
$this->main->sendPrint('', $this->helios(0, 49));
|
||||
return back();
|
||||
}
|
||||
|
||||
public function tomorrow_helios()
|
||||
{
|
||||
$this->main->sendPrint('', $this->helios(1, 2));
|
||||
$this->main->sendPrint('', $this->helios(1, 2), $this->icon);
|
||||
$this->main->sendPrint('', $this->helios(1, 49));
|
||||
return back();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user