Subversion Repositories eFlore/Applications.coel-consultation

Rev

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

Rev 144 Rev 150
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 144 2010-08-30 16:22:52Z jpm $
12
 * @version	SVN: $Id: CollectionDao.php 150 2010-09-06 15:24:03Z jpm $
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 30... Line 30...
30
		$donnees = json_decode($json, true);
30
		$donnees = json_decode($json, true);
31
		return $donnees['collections'];
31
		return $donnees['collections'];
32
	}
32
	}
Line 33... Line 33...
33
	
33
	
-
 
34
	/**
-
 
35
	 * Retourne le nombre de collections correspondant à un id strucutre précis.
-
 
36
	 * 
-
 
37
	 * @param integer l'id d'une structure.
-
 
38
	 * @return array un tableau contenant les collections correspondant à l'id structure.
-
 
39
	 */
-
 
40
	public function getNbreParIdStructure($id_structure) {
-
 
41
		$url = $this->url_jrest.self::SERVICE_COLLECTION."/NbreParIdStructure/$id_structure";
-
 
42
		$json = $this->envoyerRequeteConsultation($url);
-
 
43
		$donnees = json_decode($json, true);
-
 
44
		return $donnees;
-
 
45
	}
-
 
46
	
34
	/**
47
	/**
35
	 * Retourne les collection correspondant à un id strucutre précis.
48
	 * Retourne les collection correspondant à un id strucutre précis.
36
	 * 
49
	 * 
37
	 * @param integer l'id d'une structure.
50
	 * @param integer l'id d'une structure.
38
	 * @return array un tableau contenant les collections correspondant à l'id structure.
51
	 * @return array un tableau contenant les collections correspondant à l'id structure.