Subversion Repositories eFlore/Applications.coel-consultation

Rev

Rev 62 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 62 Rev 67
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 62 2010-05-06 13:21:56Z jpm $
12
 * @version		SVN: $Id: PersonneDao.php 67 2010-05-06 16:51:04Z 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 = '';