function debutBaliseSubst($parser, $nom, $attributs) { global $_starttag; parent::debutBaliseSubst($parser, $nom, $attributs); if ($nom == 'ENTRY' && $attributs['INVERSEOF']) { $this->inverse_of[$attributs['CODE']] = $attributs['INVERSEOF']; } $this->sens = 'flat'; if ($nom == 'ENTRY' && $attributs['SENS']) { $this->sens = $attributs['SENS']; } $table = $this->table; foreach ($table as $sens => $infos) { foreach ($infos as $code => $label) { if ($code == $attributs['CODE']) { unset($this->table[$sens][$code]); break; } } } }