Subversion Repositories eFlore/Applications.coel-consultation

Rev

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

Rev 25 Rev 33
Line 7... Line 7...
7
 * @category	Php5
7
 * @category	Php5
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: Recherche.php 25 2010-04-02 15:48:16Z jpm $
12
 * @version		SVN: $Id: Recherche.php 33 2010-04-07 15:07:44Z jpm $
13
 */
13
 */
14
class Recherche extends ColControleur {
14
class Recherche extends ColControleur {
Line 15... Line 15...
15
	
15
	
16
	//+----------------------------------------------------------------------------------------------------------------+
16
	//+----------------------------------------------------------------------------------------------------------------+
Line 133... Line 133...
133
		
133
		
134
		$mots = preg_split('/ /i', $chaine, -1, PREG_SPLIT_NO_EMPTY);
134
		$mots = preg_split('/ /i', $chaine, -1, PREG_SPLIT_NO_EMPTY);
135
		$parametres = array('mots' => '');
135
		$parametres = array('mots' => '');
136
		$cle_precedente = null;
136
		$cle_precedente = null;
137
		foreach ($mots as $mot) {
137
		foreach ($mots as $mot) {
138
			if (preg_match('/^(sci|bot|zg|p|pr):(.*)$/', $mot, $match)) {
138
			if (preg_match('/^(sci|bot|zg|p|pr|str-d):(.*)$/', $mot, $match)) {
139
				$cle = $match[1];
139
				$cle = $match[1];
140
				$cle_precedente = $cle;
140
				$cle_precedente = $cle;
141
				$valeur = $match[2];
141
				$valeur = $match[2];
142
				$parametres[$cle] = $valeur;
142
				$parametres[$cle] = $valeur;