Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 540 Rev 558
Line 5... Line 5...
5
 *
5
 *
6
 * @category	PHP 5.2
6
 * @category	PHP 5.2
7
 * @package		eflore-consultation
7
 * @package		eflore-consultation
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @author		Delphine CAUQUIL <delphine@tela-botanica.org>
9
 * @author		Delphine CAUQUIL <delphine@tela-botanica.org>
-
 
10
 * @author		Mathilde Salthun-lassalle <mathilde@tela-botanica.org>
10
 * @copyright	2011 Tela-Botanica
11
 * @copyright	2011 Tela-Botanica
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
12
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
12
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
13
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
13
 * @version		$Id$
14
 * @version		$Id$
14
 */
15
 */
Line 37... Line 38...
37
		$page_wiki = $this->wikini->getPageWikiPourRefEtNumTax($referentiel, $num_tax);
38
		$page_wiki = $this->wikini->getPageWikiPourRefEtNumTax($referentiel, $num_tax);
38
		$wikini['ecologie'] = $this->wikini->getTexteFormate($page_wiki, 'ecologie');
39
		$wikini['ecologie'] = $this->wikini->getTexteFormate($page_wiki, 'ecologie');
39
		return $wikini;
40
		return $wikini;
40
	}
41
	}
Line -... Line 42...
-
 
42
	
-
 
43
	public function getBloc() {
-
 
44
		$donnees['titre'] = "Optimum écologique";
-
 
45
		$donnees=$this->getBaseflor();
-
 
46
		return $donnees;
-
 
47
	}
41
	
48
	
42
	private function getBaseflor() {
49
	private function getBaseflor() {
43
		$baseflor = array();
50
		$baseflor = array();
44
		$this->informations ->setProjet('baseflor');
51
		$this->informations ->setProjet('baseflor');
45
		$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
52
		$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
46
		$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom'));
53
		$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom'));
47
		$informations = $this->informations->getInformations();
54
		$informations = $this->informations->getInformations();
48
		if($informations != ""){
55
		if($informations != ""){
49
			$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
56
			$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
-
 
57
			$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500";
-
 
58
			$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png";
50
			$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500";
59
			$baseflor['sol_url_png'] = $informations['graphique_sol']['href']."?retour=image/png";
51
			$this->meta->setProjet('baseflor');
60
			$this->meta->setProjet('baseflor');
52
			$meta = $this->meta->getMetaDonnees();
61
			$meta = $this->meta->getMetaDonnees();
53
			$citation = $meta[0]['citation'];
62
			$citation = $meta[0]['citation'];
54
			$baseflor['meta']['citation'] = $citation;
63
			$baseflor['meta']['citation'] = $citation;
-
 
64
			$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor');
-
 
65
			$baseflor['description']['climat_url'] = $informations['graphique_climat']['href']."?retour.format=420";
-
 
66
			$baseflor['description']['sol_url'] = $informations['graphique_sol']['href']."?retour.format=420";
-
 
67
			$baseflor['description']['climat_url_png'] = $informations['graphique_climat']['href']."?retour.format=420&retour=image/png";
55
			$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor');
68
			$baseflor['description']['sol_url_png'] = $informations['graphique_sol']['href']."?retour.format=420&retour=image/png";
56
		}else {
69
		}else {
57
			$baseflor['aucune'] = 'Aucunes données';
70
			$baseflor['aucune'] = 'Aucunes données';
58
		}
71
		}
59
		return $baseflor;
72
		return $baseflor;