Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1541 Rev 1591
Line 258... Line 258...
258
			}
258
			}
259
		}
259
		}
Line 260... Line 260...
260
		
260
		
261
		return $retour;
261
		return $retour;
-
 
262
	}
-
 
263
	
-
 
264
	private function getUrlRechercheSynonymes($num_nom) {
-
 
265
		return $this->url_service_nom.'/'.$num_nom.'/relations/synonymie/?retour.format=min';
-
 
266
	}
-
 
267
	
-
 
268
	public function rechercherSynonymesSurNumNom($num_nom) {
-
 
269
		$retour = array();
-
 
270
		$resultat = @file_get_contents($this->getUrlRechercheSynonymes($num_nom));
-
 
271
		if($resultat != '') {
-
 
272
			$resultat = json_decode($resultat);
-
 
273
			if(is_object($resultat) && isset($resultat->resultat) && count($resultat->resultat) > 0) {
-
 
274
				$retour = $resultat->resultat;
-
 
275
			}
-
 
276
		}
-
 
277
		return $retour;
262
	}
278
	}
263
}
279
}
264
?>
280
?>