Ejemplo n.º 1
0
<?php

namespace Administration;

require __DIR__ . '../../../core/initialize.php';
class Radar extends \PageHelper
{
    public $isProtected = true;
    public $isAdminProtected = true;
    public $strTemplate = "Radar.html5.twig";
    public function __construct()
    {
        parent::__construct();
        $this->VerifyTheRight(\DroitsHelper::RADAR);
    }
    public function run()
    {
        $view = $this->template->render($this->arrayTemplate);
        $this->response->setContent($view);
        $this->response->send();
    }
}
$class = new Radar();
$class->run();
Ejemplo n.º 2
0
 public function testGetType()
 {
     $this->assertEquals('radar', $this->chart->getType());
 }