Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 145 Rev 152
Line 14... Line 14...
14
		$parametres->masqueRecherche = $masque;
14
		$parametres->masqueRecherche = $masque;
15
		return $parametres;
15
		return $parametres;
16
	}
16
	}
Line 17... Line 17...
17
 
17
 
18
	protected function getResultatsPourMasque($masque) {
-
 
19
		$resultats['viola his'] = array(
-
 
20
				'entete' => array(
-
 
21
					'masque' => 'nom_sci=%viola% his%',
-
 
22
					'depart' => 0,
-
 
23
					'limite' => 3000,
-
 
24
					'total' => 5),
-
 
25
				'resultat' => array(
-
 
26
					'72291' => array(
-
 
27
						'nom_sci' => 'Viola hispida Lapeyr. [1813]',
-
 
28
						'href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72291',
-
 
29
						'retenu' => false,
-
 
30
						'nom_retenu' => 'Viola bubanii Timb.-Lagr. [1852]',
-
 
31
						'nom_retenu.id' => '72117',
18
	protected function getResultatsPourMasque($masque) {
32
						'nom_retenu.href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72117'),
-
 
33
					'72288' => array(
-
 
34
						'nom_sci' => 'Viola hispida Lam. [1779]',
-
 
35
						'href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72288',
-
 
36
						'retenu' => true,
-
 
37
						'nom_retenu' => 'Viola hispida Lam. [1779]',
-
 
38
						'nom_retenu.id' => '72288',
-
 
39
						'nom_retenu.href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72288'),
-
 
40
					'72341' => array(
19
		$resultatsJson = file_get_contents(dirname(__FILE__).'/resultats.json');
41
						'nom_sci' => 'Viola lutea var. hispida Nyman [1878]',
-
 
42
						'href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72341',
-
 
43
						'retenu' => false,
-
 
44
						'nom_retenu' => 'Viola bubanii Timb.-Lagr. [1852]',
-
 
45
						'nom_retenu.id' => '72117',
-
 
46
						'nom_retenu.href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72117'),
-
 
47
					'72289' => array(
-
 
48
						'nom_sci' => 'Viola hispida subsp. cryana (Gillot) P.Fourn. [1928]',
-
 
49
						'href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72289',
-
 
50
						'retenu' => false,
-
 
51
						'nom_retenu' => 'Viola cryana Gillot [1878]',
-
 
52
						'nom_retenu.id' => '72201',
-
 
53
						'nom_retenu.href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72201'),
-
 
54
					'72290' => array(
-
 
55
						'nom_sci' => 'Viola hispida subsp. rothomagensis P.Fourn. [1928]',
-
 
56
						'href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72290',
-
 
57
						'retenu' => false,
-
 
58
						'nom_retenu' => 'Viola hispida Lam. [1779]',
-
 
59
						'nom_retenu.id' => '72288',
-
 
60
						'nom_retenu.href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72288')));
20
		$resultats = json_decode($resultatsJson, true);
61
		return $resultats[$masque];
21
		return $resultats[$masque];
Line 62... Line 22...
62
	}
22
	}
63
 
23