Ejemplo n.º 1
0
 public function Modifier()
 {
     $retour = false;
     $colCond = $this->bufferColCond;
     if ($this->Id() !== NULL || $colCond !== NULL) {
         if ($colCond === NULL) {
             $this->AjouterColCondition(COL_ID);
             $this->AjouterColCondition(COL_LANGUE);
         }
         if ($this->Langue()->Id() === NULL) {
             $this->Langue()->Id(GSession::Langue(COL_ID));
         }
         $this->LangueOriginelle()->Id($this->Langue()->Id());
         // On ne modifie le libellé que pour notre langue.
         $retour = parent::Modifier();
         if ($retour !== false) {
             // On modifie le libellé pour toutes les autres langues qui ont comme langue d'origine notre langue.
             $mListeLibelles = new MListeLibellesTextesLibres();
             $mListeLibelles->AjouterColModification(COL_LIBELLE, $this->Libelle());
             $mListeLibelles->AjouterColModification(COL_TYPELIBELLE, $this->TypeLibelle()->Id());
             $mListeLibelles->AjouterFiltreEgal(COL_ID, $this->Id());
             $mListeLibelles->AjouterFiltreEgal(COL_LANGUEORIGINELLE, $this->Langue()->Id());
             $retour = $mListeLibelles->Modifier();
         }
     }
     return $retour;
 }