Subversion Repositories Applications.annuaire

Rev

Rev 149 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 149 Rev 357
Line 25... Line 25...
25
		$requete_insertion = 'INSERT INTO annu_triples (at_ce_annuaire, at_ressource, at_action, at_valeur) '.
25
		$requete_insertion = 'INSERT INTO annu_triples (at_ce_annuaire, at_ressource, at_action, at_valeur) '.
26
							 'VALUES ('.$this->proteger($id_annuaire).', '.$this->proteger($nom_champ).', '.$this->proteger($role).', '.$this->proteger($id_metadonnee).')';
26
							 'VALUES ('.$this->proteger($id_annuaire).', '.$this->proteger($nom_champ).', '.$this->proteger($role).', '.$this->proteger($id_metadonnee).')';
Line 27... Line 27...
27
		
27
		
28
		return $this->requete($requete_insertion);
28
		return $this->requete($requete_insertion);
-
 
29
	}
-
 
30
	
-
 
31
	public function modifierMappage($id_annuaire, $nom_champ, $role, $id_metadonnee,$id_triple) {
-
 
32
		
-
 
33
		$requete_modification = 'UPDATE annu_triples SET ' .
-
 
34
							 'at_ce_annuaire = '.$this->proteger($id_annuaire).', '.
-
 
35
							 'at_ressource, = '.$this->proteger($nom_champ).', '.
-
 
36
							 'at_action = '.$this->proteger($role).', '.
-
 
37
							 'at_valeur = '.$this->proteger($id_metadonnee).' '.
-
 
38
							 'WHERE at_id = '.$this->proteger($id_triple);
-
 
39
		
-
 
40
		return $this->requete($requete_modification);
Line 29... Line 41...
29
	}
41
	}
30
 
42
 
31
}
43
}