Subversion Repositories Applications.annuaire

Rev

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

Rev 162 Rev 245
Line 312... Line 312...
312
		
312
		
313
		$requete_id = 'SELECT amc_id_champ '.
313
		$requete_id = 'SELECT amc_id_champ '.
314
					'FROM annu_meta_colonne '.
314
					'FROM annu_meta_colonne '.
315
					'WHERE amc_abreviation = '.$this->proteger($abreviation).' '.
315
					'WHERE amc_abreviation = '.$this->proteger($abreviation).' '.
316
					'AND amc_ce_annuaire ='.$id_annuaire;
316
					'AND amc_ce_annuaire ='.$id_annuaire;
317
 
317
		
Line 318... Line 318...
318
		$resultat = $this->requeteUn($requete_id);
318
		$resultat = $this->requeteUn($requete_id);
319
 
319
 
Line 563... Line 563...
563
 
563
 
564
	  		return false;
564
	  		return false;
Line 565... Line 565...
565
	  	}
565
	  	}
-
 
566
 
-
 
567
	  }
-
 
568
	  
-
 
569
	  public function obtenirOntologieLieeAChampParId($id_champ) {
-
 
570
	  	
-
 
571
	  	$requete_id_ontologie_liee = 'SELECT amc_ce_ontologie FROM annu_meta_colonne '.
-
 
572
	  							'WHERE amc_id_champ = '.$this->proteger($id_champ);
-
 
573
	  	
-
 
574
	  	$resultat_id_ontologie_liee = $this->requeteUn($requete_id_ontologie_liee);
-
 
575
	  		  	
-
 
576
	  	if($resultat_id_ontologie_liee) {
-
 
577
	  		return $resultat_id_ontologie_liee['amc_ce_ontologie'];
-
 
578
	  	} else {
-
 
579
	  		return 0;
566
 
580
	  	}
567
	  }
581
	  }
568
}
582
}