48 lines
639 B
PHP
Executable File
48 lines
639 B
PHP
Executable File
<?php
|
|
|
|
namespace manager\module;
|
|
use \manager\sessionManager;
|
|
use \manager\ManagerError;
|
|
|
|
// On inclut les graphiques
|
|
use \manager\module\chart\networkChart;
|
|
|
|
|
|
|
|
|
|
|
|
class charts{
|
|
|
|
|
|
/* RETOURNE UN JEU DE DONNEES POUR GRAPHIQUE #NETWORK
|
|
*
|
|
*/
|
|
public static function network_data(){
|
|
return networkChart::data();
|
|
}
|
|
|
|
/* RETOURNE UN SVG CORRESPONDANT AU GRAPHIQUE #NETWORK
|
|
*
|
|
* @data<Array> Jeu de donnees
|
|
*
|
|
* @return render<String> Contenu du svg representation graphique des donnees
|
|
*
|
|
*/
|
|
public static function network_render($data){
|
|
return networkChart::render($data);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
?>
|