How mstar13-sys/cez_techtrivia works
TechTrivia is a PHP web quiz platform. Players register or sign in, choose a category and difficulty, answer questions, and receive game results with XP and achievement progression; users can also view leaderboards and manage account settings. Admin views support question and account administration, deleted-item restoration, and notifications. The graph reflects calls and dependencies shown in excerpts and the SOURCE INDEX; frontend asset wiring and unsampled implementation details are omitted where relationships cannot be verified.
Main entry points: User.php Player Domain · QuizController.php Quiz Runtime · Question.php Question Domain · SoftDeleteStore.php Soft Delete Store
Components 28
Player Experience
- Landing Page
index.php - Authentication Entry
login.php - Dashboard
views/dashboard.php - Quiz Selection
views/select_quiz.php - Question View
views/quiz.php - Game Over
views/game_over.php - Results
views/results.php - Leaderboard
views/leaderboard.php - Achievements
views/achievements.php - Account Settings
views/settings.php
Admin Operations
- Admin Console
views/admin.php - Admin Settings
views/admin_settings.php - Deleted Items
views/deleted.php - Notifications
views/notifications.php
Application Logic
- Authentication
controllers/AuthController.php - Quiz Runtime
controllers/QuizController.php - Settings Actions
controllers/SettingsController.php - Player Domain
models/User.php - Question Domain
models/Question.php - Game Session
models/GameSession.php - Model Base
models/Model.php - Session Helpers
helpers/session_helper.php - Application Bootstrap
autoload.php
Persistence
- PDO Database
core/Database.php - Database Config
config/database.php - Soft Delete Store
core/SoftDeleteStore.php - Notification Store
core/NotificationStore.php
Other components
- Player
Connections 39
- Player → Landing Page: visits
index.php - Landing Page → Player Domain: loads leaderboard
index.php - Player → Authentication Entry: signs in
login.php - Authentication Entry → Authentication: submits action
login.php - Authentication → Player Domain: authenticates
controllers/AuthController.php - Authentication → Notification Store: records recovery
controllers/AuthController.php - Player → Quiz Selection: chooses quiz
views/select_quiz.php - Quiz Selection → Quiz Runtime: starts quiz
controllers/QuizController.php - Quiz Runtime → Question Domain: fetches questions
controllers/QuizController.php - Quiz Runtime → Player Domain: saves game
controllers/QuizController.php - Quiz Runtime → Question View: routes to question
controllers/QuizController.php - Quiz Runtime → Game Over: routes at completion
controllers/QuizController.php - Dashboard → Player Domain: loads player data
views/dashboard.php - Question View → Quiz Runtime: submits answers
views/quiz.php - Question View → Question Domain: reads question data
views/quiz.php - Player Domain → PDO Database: queries player data
models/User.php - Player Domain → Soft Delete Store: tracks deleted records
models/User.php - Player Domain → Notification Store: writes notifications
models/User.php - Question Domain → Model Base: extends
models/Question.php - Question Domain → Soft Delete Store: marks questions deleted
models/Question.php - Model Base → PDO Database: uses connection
models/Model.php - PDO Database → Database Config: loads settings
core/Database.php - Session Helpers → Soft Delete Store: checks account status
helpers/session_helper.php - Settings Actions → Player Domain: updates account
controllers/SettingsController.php - Settings Actions → Account Settings: redirects to
controllers/SettingsController.php - Account Settings → Settings Actions: submits changes
views/settings.php - Admin Console → Player Domain: manages players
views/admin.php - Admin Console → Question Domain: manages questions
views/admin.php - Admin Settings → Settings Actions: uses settings actions
views/admin_settings.php - Deleted Items → Player Domain: manages deleted records
views/deleted.php - Deleted Items → Question Domain: manages deleted questions
views/deleted.php - Notifications → Notification Store: reads notifications
views/notifications.php - Notifications → Soft Delete Store: reads deletion metadata
views/notifications.php - Leaderboard → Player Domain: loads rankings
views/leaderboard.php - Achievements → Player Domain: loads achievements
views/achievements.php - Application Bootstrap → PDO Database: loads
autoload.php - Application Bootstrap → Soft Delete Store: loads
autoload.php - Application Bootstrap → Notification Store: loads
autoload.php - Game Session → Model Base: extends
models/GameSession.php