Files
Le Philousophe cc9fa80181 WEB: Add typing
2025-08-24 12:32:47 +02:00

34 lines
787 B
PHP

<?php
namespace ScummVM\Pages;
use ScummVM\Controller;
use ScummVM\Models\LinksModel;
class LinksPage extends Controller
{
private LinksModel $linksModel;
/* Constructor. */
public function __construct()
{
parent::__construct();
$this->template = 'pages/links.tpl';
$this->linksModel = new LinksModel();
}
/* Display the index page. */
public function index(): void
{
$links = $this->linksModel->getAllGroupsAndLinks();
$this->renderPage(
array(
'title' => $this->getConfigVars('linksTitle'),
// TODO: add a description
'content_title' => $this->getConfigVars('linksContentTitle'),
'links' => $links,
)
);
}
}