TraiterRaccourciGlossaireListener
in package
FinalYes
Raccourcis automatiques [?SPIP] vers un glossaire
Table of Contents
Constants
- RACCOURCI_ATTRIBUTS = '/^((?:[^[]*?(?:\[[^]]*\])?)*?)([|]([^<>]*?))?([{]([a-z_]*)[}])?$/'
- RACCOURCI_GLOSES = '/^([^|#{]*\w[^|#{]*)([^#]*)(#([^|{}]*))?(.*)$/S'
- RACCOURCI_GLOSSAIRE = '/\[\?+\s*([^][<>]+)\]/S'
Methods
- onPreLiens() : void
- traiterRaccourciLienAtts() : array<string|int, mixed>
- Repere dans la partie texte d'un raccourci [texte->...] la langue et la bulle eventuelles : [texte|title{lang}->...]
Constants
RACCOURCI_ATTRIBUTS
private
mixed
RACCOURCI_ATTRIBUTS
= '/^((?:[^[]*?(?:\[[^]]*\])?)*?)([|]([^<>]*?))?([{]([a-z_]*)[}])?$/'
RACCOURCI_GLOSES
private
mixed
RACCOURCI_GLOSES
= '/^([^|#{]*\w[^|#{]*)([^#]*)(#([^|{}]*))?(.*)$/S'
RACCOURCI_GLOSSAIRE
private
mixed
RACCOURCI_GLOSSAIRE
= '/\[\?+\s*([^][<>]+)\]/S'
Methods
onPreLiens()
public
onPreLiens(PreLiensEvent $event) : void
Parameters
- $event : PreLiensEvent
Attributes
- #[AsPipelineListener]
- $position: 'prepend'
traiterRaccourciLienAtts()
Repere dans la partie texte d'un raccourci [texte->...] la langue et la bulle eventuelles : [texte|title{lang}->...]
private
traiterRaccourciLienAtts(string $texte) : array<string|int, mixed>
Parameters
- $texte : string