51 lines
662 B
PHP
Executable File
51 lines
662 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($params){
|
|
extract($params);
|
|
|
|
return networkChart::render($data);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
?>
|