Subversion Repositories eFlore/Applications.coel-consultation

Rev

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

Rev 151 Rev 195
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: CollectionDao.php 151 2010-09-06 16:03:09Z jpm $
12
 * @version	SVN: $Id: CollectionDao.php 195 2014-01-22 13:29:20Z aurelien $
13
 *
13
 *
14
 */
14
 */
15
class CollectionDao extends Dao {
15
class CollectionDao extends Dao {
16
	const SERVICE_COLLECTION = 'CoelCollection';
16
	const SERVICE_COLLECTION = 'CoelCollection';
17
	const SERVICE_COLLECTION_A_PERSONNE = 'CoelCollectionAPersonne';
17
	const SERVICE_COLLECTION_A_PERSONNE = 'CoelCollectionAPersonne';
Line 23... Line 23...
23
	 * 
23
	 * 
24
	 * @param integer l'id de la collection.
24
	 * @param integer l'id de la collection.
25
	 * @return array un tableau contenant les informations sur la collection.
25
	 * @return array un tableau contenant les informations sur la collection.
26
	 */
26
	 */
27
	public function getCollection($id) {
27
	public function getCollection($id) {
28
		$url = $this->url_jrest.self::SERVICE_COLLECTION."/*/$id/*";
28
		$url = $this->url_jrest.self::SERVICE_COLLECTION."/$id/*";
29
		$json = $this->envoyerRequeteConsultation($url);
29
		$json = $this->envoyerRequeteConsultation($url);
30
		$donnees = json_decode($json, true);
30
		$donnees = json_decode($json, true);
31
		return $donnees['collections'];
31
		return $donnees['collections'];
32
	}
32
	}