2016-04-06 14:24:45 +00:00
|
|
|
<?php define('__ROOT__', dirname(dirname(__FILE__)) );
|
|
|
|
require_once __ROOT__.'/manager/autoloader.php';
|
|
|
|
use \manager\ModuleRequest;
|
|
|
|
use \manager\ManagerError;
|
|
|
|
use \manager\ResourceDispatcher;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-08 16:06:50 +00:00
|
|
|
/* [1] Gestion du cercle des relations
|
|
|
|
=======================================*/
|
|
|
|
/* (1) On recupere les donnees */
|
2016-04-09 19:28:30 +00:00
|
|
|
$getData = new ModuleRequest('charts/network_data');
|
2016-04-08 16:06:50 +00:00
|
|
|
$answer = $getData->dispatch();
|
|
|
|
|
|
|
|
// Si pas d'erreur
|
|
|
|
if( $answer->error != ManagerError::Success )
|
|
|
|
var_dump( ManagerError::explicit($answer->error) );
|
|
|
|
|
|
|
|
// On enregistre les donnees
|
|
|
|
$data = $answer->get('data');
|
|
|
|
|
|
|
|
|
|
|
|
/* (2) On recupere le rendu */
|
2016-04-12 14:30:14 +00:00
|
|
|
$getRender = new ModuleRequest('charts/network_render', array('dataset' => $data));
|
2016-04-08 16:06:50 +00:00
|
|
|
$answer = $getRender->dispatch();
|
|
|
|
|
|
|
|
// Si pas d'erreur
|
|
|
|
if( $answer->error != ManagerError::Success )
|
|
|
|
var_dump( ManagerError::explicit($answer->error) );
|
|
|
|
|
|
|
|
// On enregistre les donnees
|
|
|
|
$render = $answer->get('render');
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
2016-04-06 14:24:45 +00:00
|
|
|
|
2016-04-13 11:37:36 +00:00
|
|
|
<section data-sublink='network'>
|
2016-04-08 16:06:50 +00:00
|
|
|
<h6>CERCLE DES RELATIONS</h6>
|
|
|
|
<?= $render; ?>
|
|
|
|
</section>
|