1
0
This repository has been archived on 2017-06-06. You can view files and clone it, but cannot push or open issues or pull requests.
Files
informaticaD4P-2017/src/Application/Statistieken.php
2017-04-02 22:28:14 +02:00

38 lines
1.0 KiB
PHP

<?php
/**
* Informatica Eindproject D4p
* 6in3, Stedelijk Gymnasium Nijmegen
* Docent: Hans de Wolf
*
* ==================
*
* Daniel Boutros,
* Christiaan Goossens,
* Jelmer Hinssen
*/
namespace Inforbank\Application;
use Inforbank\Application\Auth\Middleware;
use Inforbank\Application\Helper\Header;
use Inforbank\Application\Helper\Statistieken as StatistiekenHelper;
use Slim\App;
class Statistieken {
public function __construct(App $app)
{
$app->get('/statistieken/{rekeningnummer}', function ($request, $response, $args) {
$verloop = StatistiekenHelper::getSaldoverloop(30, $args['rekeningnummer']);
return $this->renderer->render($response, "statistieken.phtml", [
"header" => Header::getHeaderData(),
"rekeningnr" => $args['rekeningnummer'],
"statistieken" => [
"x-as" => $verloop['x-as'],
"y-as" => $verloop['y-as']
]
]);
})->add(new Middleware());
}
}