New file |
0,0 → 1,38 |
<?php |
// declare(encoding='UTF-8'); |
/** |
* Modèle d'accès à la base de données de saisies pour le module Mages. |
* |
* @package CEL_consultation |
* @category php 5.2 |
* @author Aurélien Peronnet <aurelien@tela-botanica.org> |
* @copyright 2010 Tela-Botanica |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL |
* @version SVN: $Id: StationDao.php 154 2010-09-13 12:15:11Z aurelien $ |
* |
*/ |
class ImageDao extends Dao { |
|
const SERVICE_IMAGE = 'InventoryImageListPublic'; |
const TYPE_SERVICE_TOUT = '*'; |
const TYPE_SERVICE_CRITERES = 'criteres'; |
|
public function getListeImage($criteres, $start = 0, $limit = 100) { |
|
$type_service = self::TYPE_SERVICE_CRITERES; |
|
if(empty($criteres)) { |
$type_service = self::TYPE_SERVICE_TOUT; |
} |
|
$url = $this->url_jrest.self::SERVICE_IMAGE.'/'.$type_service.'/?'.$criteres.'&start='.$start.'&limit='.$limit; |
|
$json = $this->envoyerRequeteConsultation($url); |
|
$donnees = json_decode($json, true); |
|
return $donnees; |
} |
} |
?> |