Subversion Repositories eFlore/Applications.coel-consultation

Rev

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

Rev 188 Rev 194
Line 8... Line 8...
8
 * @author		aurelien <aurelien@tela-botanica.org>
8
 * @author		aurelien <aurelien@tela-botanica.org>
9
 * @author		mathias <mathias@tela-botanica.org>
9
 * @author		mathias <mathias@tela-botanica.org>
10
 * @copyright	2010 Tela-Botanica
10
 * @copyright	2010 Tela-Botanica
11
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
11
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
12
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
12
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
13
 * @version		SVN: $Id: RechercheDao.php 180 2013-12-20 10:29:51Z mathias $
13
 * @version		SVN: $Id: RechercheDao.php 194 2014-01-14 15:25:19Z mathias $
14
 *
14
 *
15
 */
15
 */
16
class RechercheDao extends Dao {
16
class RechercheDao extends Dao {
17
	const SERVICE = 'CoelRecherche';
17
	const SERVICE = 'CoelRecherche';
Line 89... Line 89...
89
 
89
 
Line 90... Line 90...
90
		$url = $this->url_jrest . self::SERVICE . '/' . $type;
90
		$url = $this->url_jrest . self::SERVICE . '/' . $type;
91
 
91
 
92
		foreach ($paramsAPasser as $param_cle) {
92
		foreach ($paramsAPasser as $param_cle) {
93
			if (isset($parametres[$param_cle]) && $parametres[$param_cle] != '') {
93
			if (isset($parametres[$param_cle]) && $parametres[$param_cle] != '') {
94
				$valeur = urlencode(trim($parametres[$param_cle]));
94
				$valeur = rawurlencode(trim($parametres[$param_cle]));
95
				$url .= '/'.$valeur;
95
				$url .= '/'.$valeur;
96
			} else {
96
			} else {
97
				$url .= '/*';
97
				$url .= '/*';