149 |
aurelien |
1 |
<?php
|
|
|
2 |
// declare(encoding='UTF-8');
|
|
|
3 |
/**
|
|
|
4 |
* Modèle d'accès à la base de données des listes
|
|
|
5 |
* d'ontologies
|
|
|
6 |
*
|
|
|
7 |
* PHP Version 5
|
|
|
8 |
*
|
|
|
9 |
* @package Framework
|
|
|
10 |
* @category Class
|
|
|
11 |
* @author aurelien <aurelien@tela-botanica.org>
|
|
|
12 |
* @copyright 2009 Tela-Botanica
|
|
|
13 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
|
|
14 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
|
|
15 |
* @version SVN: $$Id: ListeAdmin.php 128 2009-09-02 12:20:55Z aurelien $$
|
|
|
16 |
* @link /doc/framework/
|
|
|
17 |
*
|
|
|
18 |
*/
|
|
|
19 |
class MappageModele extends Modele {
|
|
|
20 |
|
|
|
21 |
private $config = array();
|
|
|
22 |
|
|
|
23 |
public function ajouterNouveauMappage($id_annuaire, $nom_champ, $role, $id_metadonnee) {
|
|
|
24 |
|
|
|
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).')';
|
|
|
27 |
|
|
|
28 |
return $this->requete($requete_insertion);
|
|
|
29 |
}
|
|
|
30 |
|
|
|
31 |
}
|
|
|
32 |
?>
|