| Line 7... |
Line 7... |
| 7 |
* @category php 5.2
|
7 |
* @category php 5.2
|
| 8 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
8 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
| 9 |
* @copyright 2010 Tela-Botanica
|
9 |
* @copyright 2010 Tela-Botanica
|
| 10 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
10 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
| 11 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
11 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
| 12 |
* @version SVN: $Id: StructureDao.php 22 2010-03-30 10:50:03Z jpm $
|
12 |
* @version SVN: $Id: StructureDao.php 25 2010-04-02 15:48:16Z jpm $
|
| 13 |
*
|
13 |
*
|
| 14 |
*/
|
14 |
*/
|
| 15 |
class StructureDao extends ColModele {
|
15 |
class StructureDao extends ColModele {
|
| 16 |
const SERVICE_STRUCTURE = 'CoelStructure';
|
16 |
const SERVICE_STRUCTURE = 'CoelStructure';
|
| 17 |
const SERVICE_STRUCTURE_A_PERSONNE = 'CoelStructureAPersonne';
|
17 |
const SERVICE_STRUCTURE_A_PERSONNE = 'CoelStructureAPersonne';
|
| Line 28... |
Line 28... |
| 28 |
$donnees = json_decode($json, true);
|
28 |
$donnees = json_decode($json, true);
|
| 29 |
return $donnees[1];
|
29 |
return $donnees[1];
|
| 30 |
}
|
30 |
}
|
| Line 31... |
Line 31... |
| 31 |
|
31 |
|
| - |
|
32 |
/**
|
| - |
|
33 |
* Retourne le nombre de structure par zone géographique.
|
| - |
|
34 |
*
|
| - |
|
35 |
* @param integer le type de recherche à effectuée.
|
| - |
|
36 |
* @return array un tableau contenant les informations sur le nombre de structures par zone.
|
| - |
|
37 |
*/
|
| - |
|
38 |
public function getStructureParZoneGeo($type_recherche) {
|
| - |
|
39 |
$url = $this->url_jrest.self::SERVICE_STRUCTURE."/ParZoneGeo/$type_recherche";
|
| - |
|
40 |
$json = file_get_contents($url);
|
| - |
|
41 |
$donnees = json_decode($json, true);
|
| - |
|
42 |
return $donnees;
|
| - |
|
43 |
}
|
| - |
|
44 |
|
| 32 |
/**
|
45 |
/**
|
| 33 |
* Retourne l'ensemble des informations du personnel d'une structure.
|
46 |
* Retourne l'ensemble des informations du personnel d'une structure.
|
| 34 |
*
|
47 |
*
|
| 35 |
* @param integer l'id de la structure.
|
48 |
* @param integer l'id de la structure.
|
| 36 |
* @return array un tableau contenant les informations sur le personnel de la structure.
|
49 |
* @return array un tableau contenant les informations sur le personnel de la structure.
|