2016-04-08 16:06:50 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace manager\module;
|
|
|
|
use \manager\sessionManager;
|
|
|
|
use \manager\ManagerError;
|
|
|
|
|
2016-04-09 19:28:30 +00:00
|
|
|
// On inclut les graphiques
|
|
|
|
use \manager\module\chart\networkChart;
|
2016-04-08 16:06:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-09 19:28:30 +00:00
|
|
|
class charts{
|
2016-04-08 16:06:50 +00:00
|
|
|
|
|
|
|
|
2016-04-09 19:28:30 +00:00
|
|
|
/* RETOURNE UN JEU DE DONNEES POUR GRAPHIQUE #NETWORK
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public static function network_data(){
|
|
|
|
return networkChart::data();
|
|
|
|
}
|
2016-04-08 16:06:50 +00:00
|
|
|
|
2016-04-09 19:28:30 +00:00
|
|
|
/* RETOURNE UN SVG CORRESPONDANT AU GRAPHIQUE #NETWORK
|
2016-04-08 16:06:50 +00:00
|
|
|
*
|
|
|
|
* @data<Array> Jeu de donnees
|
|
|
|
*
|
|
|
|
* @return render<String> Contenu du svg representation graphique des donnees
|
|
|
|
*
|
|
|
|
*/
|
2016-04-18 09:30:38 +00:00
|
|
|
public static function network_render($params){
|
|
|
|
extract($params);
|
|
|
|
|
2016-04-09 19:28:30 +00:00
|
|
|
return networkChart::render($data);
|
2016-04-08 16:06:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-18 09:30:38 +00:00
|
|
|
|
2016-04-08 16:06:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-04-18 09:30:38 +00:00
|
|
|
?>
|