Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 633 Rev 697
Line 35... Line 35...
35
		$donnees['cel'] = $this->getCel();
35
		$donnees['cel'] = $this->getCel();
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
	}
-
 
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
	}
Line 40... Line 49...
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');
Line 106... Line 115...
106
		$photoflora['meta']['titre'] = $titreMeta;
115
		$photoflora['meta']['titre'] = $titreMeta;
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;
-
 
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;
Line 110... Line 141...
110
	}
141
	}
111
 
142
 
112
	public function getCel() {
143
	public function getCel() {
113
		$cel = array();
144
		$cel = array();