Subversion Repositories eFlore/Applications.coel-consultation

Rev

Rev 21 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21 Rev 32
Line 7... Line 7...
7
 * @category	php5
7
 * @category	php5
8
 * @author		aurelien <aurelien@tela-botanica.org>
8
 * @author		aurelien <aurelien@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: RechercheDao.php 21 2010-03-30 10:47:02Z jpm $
12
 * @version		SVN: $Id: RechercheDao.php 32 2010-04-07 15:07:14Z jpm $
13
 *
13
 *
14
 */
14
 */
15
class RechercheDao extends ColModele {
15
class RechercheDao extends ColModele {
16
	const SERVICE = 'CoelRecherche';
16
	const SERVICE = 'CoelRecherche';
Line 40... Line 40...
40
   }
40
   }
Line 41... Line 41...
41
   
41
   
42
   private function construireUrlRecherche($type, $parametres, $limitation = true) {
42
   private function construireUrlRecherche($type, $parametres, $limitation = true) {
Line 43... Line 43...
43
   		$url = $this->url_jrest.self::SERVICE.'/'.$type;
43
   		$url = $this->url_jrest.self::SERVICE.'/'.$type;
44
		
44
		
45
		$params_a_passer = array('mots', 'sci', 'bot', 'zg', 'p', 'pr');
45
		$params_a_passer = array('mots', 'sci', 'bot', 'zg', 'p', 'pr', 'str-d');
46
		foreach ($params_a_passer as $param_cle) {
46
		foreach ($params_a_passer as $param_cle) {
47
			if (isset($parametres[$param_cle]) && $parametres[$param_cle] != '') {
47
			if (isset($parametres[$param_cle]) && $parametres[$param_cle] != '') {
48
				$valeur = urlencode(trim($parametres[$param_cle]));
48
				$valeur = urlencode(trim($parametres[$param_cle]));