Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 321 Rev 339
Line 27... Line 27...
27
	}
27
	}
Line 28... Line 28...
28
 
28
 
29
	public function obtenirDonnees() {
29
	public function obtenirDonnees() {
30
		$donnees = array();
30
		$donnees = array();
-
 
31
		$donnees['cel'] = $this->getCel();
31
		$donnees['cel'] = $this->getCel();
32
		$donnees['photoflora'] = $this->getPhotoFlora();
32
		return $donnees;
33
		return $donnees;
Line 33... Line 34...
33
	}
34
	}
34
 
35
 
Line 41... Line 42...
41
		$donnees['imageUrl'] = $urls["bdtfx.$nns"][0];
42
		$donnees['imageUrl'] = $urls["bdtfx.$nns"][0];
42
		*/
43
		*/
43
		$donnees = array();
44
		$donnees = array();
44
		return $donnees;
45
		return $donnees;
45
	}
46
	}
-
 
47
	
-
 
48
	public function getPhotoFlora() {
-
 
49
		$photoflora = array();
-
 
50
		$this->images->setProjet('photoflora');
-
 
51
		
-
 
52
		// pour le moment on triche et on envoie un num tax alors qu'on 
-
 
53
		// utilise le paramètre masque.nn
-
 
54
		$nt = $this->nomCourant->getNomSelectionne()->get('num_tax');
-
 
55
		$images = $this->images->getInfosImagesParIdsNoms(array($nt));
-
 
56
		
-
 
57
		$this->meta->setProjet('photoflora');
-
 
58
		$meta = $this->meta->getMetaDonnees();
-
 
59
		$titreMeta = $meta[0]['titre'];
-
 
60
		$photoflora['images'] = $images['resultats'];
-
 
61
		$photoflora['meta']['titre'] = $titreMeta;
-
 
62
		$photoflora['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('photoflora');
-
 
63
		return $photoflora;
-
 
64
	}
Line 46... Line 65...
46
 
65
 
47
	public function getCel() {
66
	public function getCel() {
48
		$cel = array();
67
		$cel = array();
49
		$this->images->setProjet('cel');
68
		$this->images->setProjet('cel');