Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 295 Rev 322
Line 28... Line 28...
28
	}
28
	}
Line 29... Line 29...
29
 
29
 
30
	public function obtenirDonnees() {
30
	public function obtenirDonnees() {
31
		$donnees = array();
31
		$donnees = array();
-
 
32
		$donnees['wp'] = $this->getWp();
32
		$donnees['wp'] = $this->getWp();
33
		$donnees['coste'] = $this->getCoste();
33
		return $donnees;
34
		return $donnees;
Line 34... Line 35...
34
	}
35
	}
35
 
36
 
Line 58... Line 59...
58
		$nomSci = $this->nomCourant->getNomRetenu()->get('nom_sci');
59
		$nomSci = $this->nomCourant->getNomRetenu()->get('nom_sci');
59
		$idWp = str_replace(' ', '_', $nomSci);
60
		$idWp = str_replace(' ', '_', $nomSci);
60
		$idWp = urlencode($idWp);
61
		$idWp = urlencode($idWp);
61
		return $idWp;
62
		return $idWp;
62
	}
63
	}
-
 
64
	
-
 
65
	private function getCoste() {
-
 
66
		$coste = array();
-
 
67
		$this->textes->setProjet('coste');
-
 
68
		$this->textes->setId('bdtfx.nn:'.$this->nomCourant->getNns());
-
 
69
		$texte = $this->textes->getTexte();
-
 
70
		$coste['titre'] = $texte['titre'];
-
 
71
		$coste['description'] = $texte['texte'];
-
 
72
		$this->meta->setProjet('coste');
-
 
73
		$coste['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('coste');
-
 
74
		return $coste;
-
 
75
	}
63
}
76
}
64
?>
77
?>
65
78