public function Ajouter() { // On inscrit le nouveau libellé dans la base. $retour = parent::Ajouter(); if ($retour !== false) { // On copie le libellé pour toutes les autres langues. $mListeLibelles = new MListeLibellesLibres(); $mListeLibelles->AjouterJointure(COL_LANGUE, COL_ID, 0, SQL_CROSS_JOIN); $mListeLibelles->AjouterColInsertionExt(0, COL_ID, COL_ID); $mListeLibelles->AjouterColInsertionExt(0, COL_LIBELLE, COL_LIBELLE); $mListeLibelles->AjouterColInsertionExt(0, COL_TYPELIBELLE, COL_TYPELIBELLE); $mListeLibelles->AjouterColInsertionExt(0, COL_LANGUEORIGINELLE, COL_LANGUEORIGINELLE); $mListeLibelles->AjouterColInsertionExt(1, COL_LANGUE, COL_ID); $mListeLibelles->AjouterFiltreEgal(COL_ID, $this->Id()); $mListeLibelles->AjouterFiltreDifferentPourJointure(1, COL_ID, GSession::Langue(COL_ID)); $retour = $mListeLibelles->Ajouter(); } return $retour; }