Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 1062 Rev 1092
Line 186... Line 186...
186
	private function getCoste() {
186
	private function getCoste() {
187
		$coste = array();
187
		$coste = array();
188
		$this->textes->setProjet('coste');
188
		$this->textes->setProjet('coste');
189
		$this->textes->setId('bdtfx.nn:'.$this->nomCourant->getNnr());
189
		$this->textes->setId('bdtfx.nn:'.$this->nomCourant->getNnr());
190
		$texte = $this->textes->getTexte();
190
		$texte = $this->textes->getTexte();
-
 
191
		$texte = array_pop($texte['resultats']);
191
		if ($texte) {
192
		if ($texte) {
192
			$coste['titre'] = $texte['titre'];
193
			$coste['titre'] = $texte['titre'];
193
			$coste['description'] = $this->mettreEnFormeCoste($texte['texte']);
194
			$coste['description'] = $this->mettreEnFormeCoste($texte['texte']);
194
		}
195
		}
195
		$this->meta->setProjet('coste');
196
		$this->meta->setProjet('coste');
Line 236... Line 237...
236
		}
237
		}
237
	}
238
	}
Line 238... Line 239...
238
 
239
 
239
 
240
 
240
	public function separerEcologie_a_Usages(){
241
	public function separerEcologie_a_Usages(){
241
		if ( preg_match('/\.[ ]*([A-ZÉÀÈ].+)$/',$this->CosteTexte, $retour)){
242
		if ( preg_match('/\.\s*([A-ZÉÀÈ].+)$/',$this->CosteTexte, $retour)){
242
			$this->CosteFormate['ecologie'] = $retour[1];
243
			$this->CosteFormate['ecologie'] = $retour[1];
243
			$this->CosteTexte = str_replace($retour[0],'.',$this->CosteTexte);
244
			$this->CosteTexte = str_replace($retour[0],'.',$this->CosteTexte);
244
			if (isset($this->CosteFormate['ecologie']) && preg_match('/–(.+)/', $this->CosteFormate['ecologie'] , $retour)){
245
			if (isset($this->CosteFormate['ecologie']) && preg_match('/–(.+)/', $this->CosteFormate['ecologie'] , $retour)){