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: PersonneDao.php 154 2010-09-13 12:15:11Z jpm $
|
12 |
* @version SVN: $Id: PersonneDao.php 215 2014-05-14 07:57:28Z aurelien $
|
13 |
*
|
13 |
*
|
14 |
*/
|
14 |
*/
|
15 |
class PersonneDao extends Dao {
|
15 |
class PersonneDao extends Dao {
|
16 |
const SERVICE_PERSONNE = 'CoelPersonne';
|
16 |
const SERVICE_PERSONNE = 'CoelPersonne';
|
17 |
const SERVICE_PERSONNE_A_PUBLICATION = 'CoelPublicationAPersonne';
|
17 |
const SERVICE_PERSONNE_A_PUBLICATION = 'CoelPublicationAPersonne';
|
Line 64... |
Line 64... |
64 |
private function getPersonneAPublication($id_personne) {
|
64 |
private function getPersonneAPublication($id_personne) {
|
65 |
$cache =& $this->cache['PersonneAPublication'];
|
65 |
$cache =& $this->cache['PersonneAPublication'];
|
66 |
if (isset($cache[$id_personne])) {
|
66 |
if (isset($cache[$id_personne])) {
|
67 |
$donnees = $cache[$id_personne];
|
67 |
$donnees = $cache[$id_personne];
|
68 |
} else {
|
68 |
} else {
|
69 |
$url = $this->url_jrest.self::SERVICE_PERSONNE_A_PUBLICATION."/*/$id_personne/2361,2362,2363";
|
69 |
$url = $this->url_jrest.self::SERVICE_PERSONNE_A_PUBLICATION."/*/$id_personne/";
|
70 |
$json = $this->envoyerRequeteConsultation($url);
|
70 |
$json = $this->envoyerRequeteConsultation($url);
|
71 |
$donnees = json_decode($json, true);
|
71 |
$donnees = json_decode($json, true);
|
72 |
$cache[$id_personne] = $donnees;
|
72 |
$cache[$id_personne] = $donnees;
|
73 |
}
|
73 |
}
|
74 |
return $donnees;
|
74 |
return $donnees;
|