Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 633 | Rev 955 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 633 Rev 697
Line 36... Line 36...
36
		$donnees['photoflora'] = $this->getPhotoFlora();
36
		$donnees['photoflora'] = $this->getPhotoFlora();
37
		$donnees['coste'] = $this->getCoste();
37
		$donnees['coste'] = $this->getCoste();
38
		return $donnees;
38
		return $donnees;
39
	}
39
	}
Line -... Line 40...
-
 
40
	
-
 
41
	public function obtenirDonneesExport() {
-
 
42
		$donnees = array();
-
 
43
		$donnees['nt'] = $this->nomCourant->getNt();
-
 
44
		$donnees['nomSciRetenu'] = $this->nomCourant->getNomRetenu()->get('nom_sci_html');
-
 
45
		$donnees['cel'] = $this->getCelExport();
-
 
46
		$donnees['coste'] = $this->getCoste();
-
 
47
		return $donnees;
-
 
48
	}
40
 
49
 
41
	public function getBloc() {
50
	public function getBloc() {
42
		$donnees = array();
51
		$donnees = array();
43
		$donnees = $this->getPhoto('cel');
52
		$donnees = $this->getPhoto('cel');
44
		if (empty($donnees)) {
53
		if (empty($donnees)) {
Line 107... Line 116...
107
		$photoflora['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('photoflora');
116
		$photoflora['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('photoflora');
Line 108... Line 117...
108
 
117
 
109
		return $photoflora;
118
		return $photoflora;
Line -... Line 119...
-
 
119
	}
-
 
120
	
-
 
121
 
-
 
122
	public function getCelExport() {
-
 
123
		$cel = array();
-
 
124
		$this->images->setProjet('cel');
-
 
125
		$nnr = $this->nomCourant->getNnr();
-
 
126
		$img = $this->images->getUrlPremiereImageParIdsNoms(array($nnr));
-
 
127
		if($img) {
-
 
128
			$img = array_values($img);
-
 
129
			$cel['images']['src'] = $img[0]['binaire.href'];
-
 
130
			$cel['images']['nomSci'] = $img[0]['determination.nom_sci'];
-
 
131
			$cel['images']['commune'] = $img[0]['station.commune'];
-
 
132
			$cel['images']['date'] = $this->formaterDateImg($img[0]['date']);
-
 
133
			$cel['images']['auteur'] = $img[0]['auteur.libelle'];
-
 
134
			$this->meta->setProjet('cel');
-
 
135
			$meta = $this->meta->getMetaDonnees();
-
 
136
			$titreMeta = $meta[0]['titre'];
-
 
137
			$cel['meta']['titre'] = $titreMeta;
-
 
138
			$cel['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('cel');
-
 
139
		}
-
 
140
		return $cel;
110
	}
141
	}
111
 
142
 
112
	public function getCel() {
143
	public function getCel() {
113
		$cel = array();
144
		$cel = array();
114
		$this->images->setProjet('cel');
145
		$this->images->setProjet('cel');