Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1550 Rev 1561
Line 708... Line 708...
708
			}
708
			}
709
			$valeurs = implode($separateur_sortie, $valeurs_protegees);
709
			$valeurs = implode($separateur_sortie, $valeurs_protegees);
710
		}
710
		}
711
		return ($this->etreNull($valeurs)) ? null : $valeurs;
711
		return ($this->etreNull($valeurs)) ? null : $valeurs;
712
	}
712
	}
-
 
713
	
-
 
714
	protected function obtenirSousTaxonsPourNt($referentiel, $nt) {
-
 
715
		return $this->obtenirSousTaxons($referentiel, 'nt:'.$nt);
-
 
716
	}
-
 
717
	
-
 
718
	protected function obtenirSousTaxonsPourNn($referentiel, $nn) {
-
 
719
		return $this->obtenirSousTaxons($referentiel, $nn);
-
 
720
	}
-
 
721
	
-
 
722
	private function obtenirSousTaxons($referentiel, $requete) {
-
 
723
		$sous_taxons = array();
-
 
724
		$url_service_taxon = str_replace('{referentiel}', $referentiel, $this->config['eflore']['url_service_taxon']);
-
 
725
		$url = $url_service_taxon.'/'.$requete.'/relations/hierarchie';
-
 
726
		$res = json_decode(file_get_contents($url),true);
-
 
727
		if($res && !empty($res)) {
-
 
728
			$sous_taxons = array_pop($res);
-
 
729
		}
-
 
730
		return $sous_taxons;
-
 
731
	}
Line 713... Line 732...
713
 
732
 
714
	//+----------------------------------------------------------------------------------------------------------------+
733
	//+----------------------------------------------------------------------------------------------------------------+
Line 715... Line 734...
715
	// GESTION DES SQUELETTES PHP
734
	// GESTION DES SQUELETTES PHP