Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 434 Rev 448
Line 34... Line 34...
34
	}
34
	}
Line 35... Line 35...
35
 
35
 
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
		$nns = $this->nomCourant->getNns();
39
		$nnr = $this->nomCourant->getNnr();
40
		$infos_image = $this->images->getUrlPremiereImageParIdsNoms(array($nns));
40
		$infos_image = $this->images->getUrlPremiereImageParIdsNoms(array($nnr));
41
		$image = array_slice($infos_image['resultats'], 0);
41
		$image = array_slice($infos_image['resultats'], 0);
42
		$donnees['imageUrl'] = $image[0]['binaire.href'];
42
		$donnees['imageUrl'] = $image[0]['binaire.href'];
43
		return $donnees;
43
		return $donnees;
Line 44... Line 44...
44
	}
44
	}
45
	
45
	
46
	public function getPhotoFlora() {
46
	public function getPhotoFlora() {
47
		$photoflora = array();
47
		$photoflora = array();
48
		$this->images->setProjet('photoflora');
48
		$this->images->setProjet('photoflora');
Line 49... Line 49...
49
		$nns = $this->nomCourant->getNns();
49
		$nnr = $this->nomCourant->getNnr();
50
		$images = $this->images->getInfosImagesParIdsNoms(array($nns));
50
		$images = $this->images->getInfosImagesParIdsNoms(array($nnr));
51
		
51
		
52
		$this->meta->setProjet('photoflora');
52
		$this->meta->setProjet('photoflora');
Line 59... Line 59...
59
	}
59
	}
Line 60... Line 60...
60
 
60
 
61
	public function getCel() {
61
	public function getCel() {
62
		$cel = array();
62
		$cel = array();
63
		$this->images->setProjet('cel');
63
		$this->images->setProjet('cel');
64
		$nns = $this->nomCourant->getNns();
64
		$nnr = $this->nomCourant->getNnr();
Line 65... Line 65...
65
		$images = $this->images->getInfosImagesParIdsNoms(array($nns));
65
		$images = $this->images->getInfosImagesParIdsNoms(array($nnr));
66
		
66
		
67
		$this->meta->setProjet('cel');
67
		$this->meta->setProjet('cel');
68
		$meta = $this->meta->getMetaDonnees();
68
		$meta = $this->meta->getMetaDonnees();