Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1598 Rev 1618
Line 243... Line 243...
243
		$methode .= str_replace(' ', '', ucwords(str_replace('-', ' ', strtolower($nom))));
243
		$methode .= str_replace(' ', '', ucwords(str_replace('-', ' ', strtolower($nom))));
244
		return $methode;
244
		return $methode;
245
	}
245
	}
Line 246... Line 246...
246
 
246
 
247
	//+----------------------------------------------------------------------------------------------------------------+
247
	//+----------------------------------------------------------------------------------------------------------------+
Line 248... Line 248...
248
	// GESTION de l'ENVOIE au NAVIGATEUR
248
	// GESTION de l'ENVOI au NAVIGATEUR
249
 
249
 
250
	protected function envoyerJson($donnees, $encodage = 'utf-8') {
250
	protected function envoyerJson($donnees, $encodage = 'utf-8') {
251
		$encodage_json = true;
251
		$encodage_json = true;
Line 727... Line 727...
727
		if($res && !empty($res)) {
727
		if($res && !empty($res)) {
728
			$sous_taxons = array_pop($res);
728
			$sous_taxons = array_pop($res);
729
		}
729
		}
730
		return $sous_taxons;
730
		return $sous_taxons;
731
	}
731
	}
-
 
732
	
-
 
733
	protected function supprimerVersionDuReferentiel($referentiel) {
-
 
734
		$referentiel_parties = explode(':', $referentiel);
-
 
735
		$referentiel_parties = explode('_', $referentiel_parties[0]);
-
 
736
		return $referentiel_parties[0];
-
 
737
	}
-
 
738
	
-
 
739
	protected function getUrlEflore($referentiel, $nn) {
-
 
740
		$urlEflore = null;
-
 
741
		if (! $this->etreNull($nn)) {
-
 
742
			$code_referentiel = $this->supprimerVersionDuReferentiel($referentiel);
-
 
743
			if($code_referentiel == '') {
-
 
744
				$code_referentiel = 'bdtfx';
-
 
745
			}
-
 
746
			$urlEflore = sprintf($this->config['settings']['efloreUrlTpl'], $code_referentiel, $nn, 'illustration');
-
 
747
		}
-
 
748
		return $urlEflore;
-
 
749
	}
Line 732... Line 750...
732
 
750
 
733
	//+----------------------------------------------------------------------------------------------------------------+
751
	//+----------------------------------------------------------------------------------------------------------------+
Line 734... Line 752...
734
	// GESTION DES SQUELETTES PHP
752
	// GESTION DES SQUELETTES PHP