Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 448 Rev 470
Line 36... Line 36...
36
	public function getBloc() {
36
	public function getBloc() {
37
		// Trop long, il faut un service spécial...
37
		// Trop long, il faut un service spécial...
38
		$this->images->setProjet('cel');
38
		$this->images->setProjet('cel');
39
		$nnr = $this->nomCourant->getNnr();
39
		$nnr = $this->nomCourant->getNnr();
40
		$infos_image = $this->images->getUrlPremiereImageParIdsNoms(array($nnr));
40
		$infos_image = $this->images->getUrlPremiereImageParIdsNoms(array($nnr));
-
 
41
		if(!$infos_image || $infos_image['entete']['total'] == 0) {
-
 
42
			$this->images->setProjet('photoflora');
-
 
43
			$nnr = $this->nomCourant->getNnr();
-
 
44
			$infos_image = $this->images->getUrlPremiereImageParIdsNoms(array($nnr));
-
 
45
		}
-
 
46
		
41
		$image = array_slice($infos_image['resultats'], 0);
47
		$image = array_shift($infos_image['resultats']);
42
		$donnees['imageUrl'] = $image[0]['binaire.href'];
48
		$donnees['imageUrl'] = $image['binaire.href'];
43
		return $donnees;
49
		return $donnees;
44
	}
50
	}
Line 45... Line 51...
45
	
51
	
46
	public function getPhotoFlora() {
52
	public function getPhotoFlora() {