mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-05-21 05:40:47 +00:00
32 lines
794 B
PHP
32 lines
794 B
PHP
<?php
|
|
namespace ScummVM\Pages;
|
|
|
|
use ScummVM\Controller;
|
|
use ScummVM\Models\DirectorDemosModel;
|
|
|
|
class DirectorDemosPage extends Controller
|
|
{
|
|
private $gameDemosModel;
|
|
|
|
/* Constructor. */
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->template = 'pages/director_demos.tpl';
|
|
$this->gameDemosModel = new DirectorDemosModel();
|
|
}
|
|
|
|
/* Display the index page. */
|
|
public function index()
|
|
{
|
|
$demos = $this->gameDemosModel->getAllGroupsAndDemos();
|
|
return $this->renderPage(
|
|
array(
|
|
'title' => $this->getConfigVars('directorDemosTitle'),
|
|
'content_title' => $this->getConfigVars('directorDemosContentTitle'),
|
|
'demos' => $demos,
|
|
)
|
|
);
|
|
}
|
|
}
|