Files
scummvm-web/include/Pages/DirectorDemosPage.php
T
Le Philousophe cc9fa80181 WEB: Add typing
2025-08-24 12:32:47 +02:00

33 lines
890 B
PHP

<?php
namespace ScummVM\Pages;
use ScummVM\Controller;
use ScummVM\Models\DirectorDemosModel;
class DirectorDemosPage extends Controller
{
private DirectorDemosModel $gameDemosModel;
/* Constructor. */
public function __construct()
{
parent::__construct();
$this->template = 'pages/director_demos.tpl';
$this->gameDemosModel = new DirectorDemosModel();
}
/* Display the index page. */
public function index(): void
{
$demos = $this->gameDemosModel->getAllGroupsAndDemos();
$this->renderPage(
array(
'title' => $this->getConfigVars('directorDemosTitle'),
'description' => $this->getConfigVars('gamesDemosContentP1'),
'content_title' => $this->getConfigVars('directorDemosContentTitle'),
'demos' => $demos,
)
);
}
}