Handbuch:NameTableStore.php
Appearance
| MediaWiki-Datei: NameTableStore.php | |
|---|---|
| Speicherort: | includes/Storage/ |
| Quellcode: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Klassen: | MediaWiki\Storage\NameTableStore |
NameTableStore is used for normalized data storage. It is a service that can convert a name into an ID (potentially assigning a new ID and storing the association in the database, if the name hasn't been used before) and back.
A separate instance of the service is used for each table. In core, these services can be obtained via NameTableStoreFactory. Wird aktuell für die content_models-, slot_roles- und change_tag_def-Tabellen verwendet.