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 58 2010-04-30 16:32:28Z jpm $
|
12 |
* @version SVN: $Id: PersonneDao.php 65 2010-05-06 16:49:32Z jpm $
|
13 |
*
|
13 |
*
|
14 |
*/
|
14 |
*/
|
15 |
class PersonneDao extends ColModele {
|
15 |
class PersonneDao extends ColModele {
|
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 43... |
Line 43... |
43 |
*/
|
43 |
*/
|
44 |
public function getPersonneAPublication($id_personne) {
|
44 |
public function getPersonneAPublication($id_personne) {
|
45 |
$url = $this->url_jrest.self::SERVICE_PERSONNE_A_PUBLICATION."/*/$id_personne/2361,2362,2363";
|
45 |
$url = $this->url_jrest.self::SERVICE_PERSONNE_A_PUBLICATION."/*/$id_personne/2361,2362,2363";
|
46 |
$json = file_get_contents($url);
|
46 |
$json = file_get_contents($url);
|
47 |
$donnees = json_decode($json, true);
|
47 |
$donnees = json_decode($json, true);
|
48 |
$this->nettoyerTableauDeTableauxAssoc($donnees);
|
48 |
$this->nettoyerTableauDeTableauxAssoc($donnees['publicationsAPersonne']);
|
49 |
return $donnees;
|
49 |
return $donnees['publicationsAPersonne'];
|
50 |
}
|
50 |
}
|
Line 51... |
Line 51... |
51 |
|
51 |
|
52 |
public function getPersonneNomComplet($id) {
|
52 |
public function getPersonneNomComplet($id) {
|
53 |
$nom_complet = '';
|
53 |
$nom_complet = '';
|