How tradicije/librett-wordpress works
LibreTT is a WordPress plugin for managing and publishing table-tennis competitions, clubs, players, matches, and statistics. Its main workflow is operators entering competition and match data in the admin or user portal, which the plugin stores in database tables and exposes through compatible routes and shortcodes. Separate branches provide frontend search, settings and data transfer, and an in-progress tournament add-on. Edges reflect README statements and SOURCE INDEX references; unsampled modules are included where documented capabilities or the index support them, without inferring their internal calls.
Main entry points: UserPortalManager.php Portal manager · trait-opentt-unified-search.php Search orchestration · Plugin.php Tournament bootstrap · Admin.php Tournament admin
Components 29
Plugin lifecycle
- Plugin bootstrap
src/Plugin.php - Compatibility core
includes/class-opentt-unified-core.php - Match data tables
Admin operations
- Admin actions
src/WordPress/AdminSettingsActionManager.php - Settings
src/WordPress/SettingsManager.php - Visual settings
src/Infrastructure/VisualSettings.php - Import and export
src/WordPress/DataTransferActionManager.php - Onboarding
src/WordPress/OnboardingManager.php
Frontend publishing
- Shortcode services
src/WordPress/Shortcodes - Search orchestration
includes/modules/trait-opentt-unified-search.php - Intent parser
src/WordPress/FrontendSearchIntentParser.php - Date parser
src/WordPress/FrontendSearchDateParser.php - Search repository
src/WordPress/FrontendSearchRepository.php - Search text matching
src/WordPress/FrontendSearchText.php - Route templates
templates
User portal
- Portal manager
src/WordPress/UserPortalManager.php - Portal authentication
src/WordPress/UserPortalAuthService.php - League admin views
src/WordPress/UserPortalLeagueAdminViewService.php - League game entry
src/WordPress/UserPortalLeagueGamesService.php - League match entry
src/WordPress/UserPortalLeagueMatchService.php - Team manager views
src/WordPress/UserPortalTeamManagerViewService.php
Tournament add-on
- Tournament bootstrap
addons/tournaments/src/Plugin.php - Tournament admin
addons/tournaments/src/WordPress/Admin.php - Bracket generator
addons/tournaments/src/Domain/BracketGenerator.php - Tournament repository
addons/tournaments/src/Infrastructure/Repository.php - Tournament tables
addons/tournaments/src/Infrastructure/Schema.php - Tournament shortcodes
addons/tournaments/src/WordPress/Shortcodes.php
Other components
- Club operator
- Site visitor
Connections 33
- Club operator → Admin actions: configures
- Admin actions → Settings: updates
src/WordPress/AdminSettingsActionManager.php - Settings → Visual settings: resets
src/WordPress/SettingsManager.php - Club operator → Import and export: imports or exports
- Club operator → Onboarding: starts setup
- Club operator → Portal manager: manages data
- Plugin bootstrap → Compatibility core: loads
src/Plugin.php - Plugin bootstrap → Tournament bootstrap: loads add-on
src/Plugin.php - Portal manager → Portal authentication: delegates to
src/WordPress/UserPortalManager.php - Portal manager → League admin views: delegates to
src/WordPress/UserPortalManager.php - Portal manager → League game entry: delegates to
src/WordPress/UserPortalManager.php - Portal manager → League match entry: delegates to
src/WordPress/UserPortalManager.php - Portal manager → Team manager views: delegates to
src/WordPress/UserPortalManager.php - Site visitor → Shortcode services: requests content
- Site visitor → Search orchestration: searches
- Search orchestration → Intent parser: parses intent
includes/modules/trait-opentt-unified-search.php - Search orchestration → Date parser: parses dates
includes/modules/trait-opentt-unified-search.php - Search orchestration → Search repository: queries
includes/modules/trait-opentt-unified-search.php - Search orchestration → Search text matching: scores text
includes/modules/trait-opentt-unified-search.php - Date parser → Search text matching: uses
src/WordPress/FrontendSearchDateParser.php - Site visitor → Route templates: views routes
- Site visitor → Tournament shortcodes: views tournaments
- Tournament bootstrap → Tournament admin: registers
addons/tournaments/src/Plugin.php - Tournament bootstrap → Tournament shortcodes: registers
addons/tournaments/src/Plugin.php - Tournament bootstrap → Tournament tables: activates schema
addons/tournaments/src/Plugin.php - Tournament admin → Bracket generator: generates brackets
addons/tournaments/src/WordPress/Admin.php - Tournament admin → Tournament repository: reads tournament data
addons/tournaments/src/WordPress/Admin.php - Tournament admin → Tournament tables: uses tables
addons/tournaments/src/WordPress/Admin.php - Tournament shortcodes → Tournament repository: reads tournament data
addons/tournaments/src/WordPress/Shortcodes.php - Tournament repository → Tournament tables: resolves tables
addons/tournaments/src/Infrastructure/Repository.php - Bracket generator → Tournament tables: uses schema
addons/tournaments/src/Domain/BracketGenerator.php - Club operator → Match data tables: records matches
- Shortcode services → Match data tables: publishes results