Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 1135 Rev 1136
Line 55... Line 55...
55
		$this->donnees['coste'] = $this->getCoste();
55
		$this->donnees['coste'] = $this->getCoste();
56
		return $this->donnees;
56
		return $this->donnees;
57
	}
57
	}
Line 58... Line 58...
58
 
58
 
-
 
59
	public function getBloc() {
59
	public function getBloc() {
60
		$this->donnees = $this->images->getInfosMeilleureImageParPrioriteTags($nnr = $this->nomCourant->getNnr(), array(
60
		$this->donnees = $this->getPhoto('cel');
61
				'fleur', 'feuille', 'fruit', 'ecorce', 'port', 'rameau'));
61
		if (empty($this->donnees)) {
62
		if (empty($this->donnees)) {
62
			$infos_image = $this->getDessin();
63
			$infos_image = $this->getDessin();
63
			if (empty($infos_image) == false ){
64
			if (empty($infos_image) == false ){
64
				$this->donnees['imageUrl'] =  array_shift($infos_image['images']);
65
				$this->donnees['imageUrl'] =  array_shift($infos_image['images']);
-
 
66
			}
-
 
67
		} else {
-
 
68
			// extraction de l'url
65
			}
69
			$this->donnees = array('imageUrl' => $this->donnees['binaire.href']);
66
		}
70
		}
67
		if (empty($this->donnees)) {
71
		if (empty($this->donnees)) {
68
			$this->donnees = $this->getPhoto('photoflora');
72
			$this->donnees = $this->getPhoto('photoflora');
69
		}
73
		}