Subversion Repositories eFlore/Applications.coel-consultation

Rev

Rev 34 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34 Rev 156
1
<?php
1
<?php
2
// declare(encoding='UTF-8');
2
// declare(encoding='UTF-8');
3
/**
3
/**
4
 * Modèle d'accès à la base de données des Collections pour les flux de Syndication.
4
 * Modèle d'accès à la base de données des Collections pour les flux de Syndication.
5
 *
5
 *
6
 * @package		Collection
6
 * @package		Collection
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$
12
 * @version		SVN: $Id$
13
 *
13
 *
14
 */
14
 */
15
class SyndicationDao extends ColModele {
15
class SyndicationDao extends Dao {
16
	const SERVICE = 'CoelSyndication';
16
	const SERVICE = 'CoelSyndication';
17
	
17
	
18
	/**
18
	/**
19
	 * Retourne l'ensemble des information sur les flux de syndication disponibles.
19
	 * Retourne l'ensemble des information sur les flux de syndication disponibles.
20
	 * 
20
	 * 
21
	 * @return array un tableau contenant les informations.
21
	 * @return array un tableau contenant les informations.
22
	 */
22
	 */
23
	public function getListeDesFlux() {
23
	public function getListeDesFlux() {
24
		$url = $this->url_jrest.self::SERVICE.'/liste_des_flux';
24
		$url = $this->url_jrest.self::SERVICE.'/liste_des_flux';
25
		$json = file_get_contents($url);
25
		$json = $this->envoyerRequeteConsultation($url);
26
		$donnees = json_decode($json, true);
26
		$donnees = json_decode($json, true);
27
		return $donnees;
27
		return $donnees;
28
	}
28
	}
29
}
29
}
30
?>
30
?>