Subversion Repositories Applications.annuaire

Rev

Rev 69 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
69 aurelien 1
<?php
2
/**
3
* PHP Version 5
4
*
5
* @category  PHP
6
* @package   annuaire
7
* @author    aurelien <aurelien@tela-botanica.org>
8
* @copyright 2010 Tela-Botanica
9
* @license   http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
10
* @version   SVN: <svn_id>
11
* @link      /doc/annuaire/
12
*/
13
 
14
Class StatistiquesAnnuaire extends JRestService {
15
 
16
	public function getElement($uid){
17
 
18
	    if(!isset($uid[0])) {
19
			$id_annuaire = $uid[0];
20
	    } else {
21
			$id_annuaire = Config::get('annuaire_defaut');
22
	    }
23
 
24
	    $controleur = new StatistiquesControleur();
25
		$valeurs = $controleur->obtenirGraphiques($id_annuaire);
26
 
27
		$this->envoyer($valeurs);
28
	}
29
}
30
?>