Subversion Repositories eFlore/Applications.cel-consultation

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 aurelien 1
<?php
2
// declare(encoding='UTF-8');
3
/**
4
 * Modèle d'accès à la base de données de saisies pour le module Mages.
5
 *
6
 * @package CEL_consultation
7
 * @category    php 5.2
8
 * @author      Aurélien Peronnet <aurelien@tela-botanica.org>
9
 * @copyright   2010 Tela-Botanica
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
12
 * @version SVN: $Id: StationDao.php 154 2010-09-13 12:15:11Z aurelien $
13
 *
14
 */
15
class ImageDao extends Dao {
16
 
17
	const SERVICE_IMAGE = 'InventoryImageListPublic';
18
	const TYPE_SERVICE_TOUT = '*';
19
	const TYPE_SERVICE_CRITERES = 'criteres';
20
 
21
    public function getListeImage($criteres, $start = 0, $limit = 100) {
22
 
23
    	$type_service = self::TYPE_SERVICE_CRITERES;
24
 
25
    	if(empty($criteres)) {
26
    		$type_service = self::TYPE_SERVICE_TOUT;
27
    	}
28
 
29
	    $url = $this->url_jrest.self::SERVICE_IMAGE.'/'.$type_service.'/?'.$criteres.'&start='.$start.'&limit='.$limit;
30
 
31
        $json = $this->envoyerRequeteConsultation($url);
32
 
33
        $donnees = json_decode($json, true);
34
 
35
        return $donnees;
36
	}
37
}
38
?>